(self, cells, state_is_tuple=True)
Create a RNN cell composed sequentially of a number of RNNCells.

    Args:
      cells: list of RNNCells that will be composed in this order.
      state_is_tuple: If True, accepted and returned states are n-tuples, where
        `n = len(cells)`.  If False, the states are all
        concatenated along the column axis.  This latter behavior will soon be
        deprecated.

    Raises:
      ValueError: if cells is empty (not allowed), or at least one of the cells
        returns a state tuple but the flag `state_is_tuple` is `False`.
Create a RNN cell composed sequentially of a number of RNNCells.
Create a RNN cell composed sequentially of a number of RNNCells .
def __init__(self, cells, state_is_tuple=True):
    """Create a RNN cell composed sequentially of a number of RNNCells.

    Args:
      cells: list of RNNCells that will be composed in this order.
      state_is_tuple: If True, accepted and returned states are n-tuples, where
        `n = len(cells)`.  If False, the states are all
        concatenated along the column axis.  This latter behavior will soon be
        deprecated.

    Raises:
      ValueError: if cells is empty (not allowed), or at least one of the cells
        returns a state tuple but the flag `state_is_tuple` is `False`.
    """
    if not cells:
      raise ValueError("Must specify at least one cell for MultiRNNCell.")
    self._cells = cells
    self._state_is_tuple = state_is_tuple
    if not state_is_tuple:
      if any(nest.is_sequence(c.state_size) for c in self._cells):
        raise ValueError("Some cells return tuples of states, but the flag "
                         "state_is_tuple is not set.  State sizes are: %s"
                         % str([c.state_size for c in self._cells]))
def __init__ ( self , cells , state_is_tuple = True ) : if not cells : raise ValueError ( "Must specify at least one cell for MultiRNNCell." ) self . _cells = cells self . _state_is_tuple = state_is_tuple if not state_is_tuple : if any ( nest . is_sequence ( c . state_size ) for c in self . _cells ) : raise ValueError ( "Some cells return tuples of states, but the flag " "state_is_tuple is not set.  State sizes are: %s" % str ( [ c . state_size for c in self . _cells ] ) )