(self, num_units, forget_bias=1.0, input_size=None,
               state_is_tuple=True, activation=tanh)
Initialize the basic LSTM cell.

    Args:
      num_units: int, The number of units in the LSTM cell.
      forget_bias: float, The bias added to forget gates (see above).
      input_size: Deprecated and unused.
      state_is_tuple: If True, accepted and returned states are 2-tuples of
        the `c_state` and `m_state`.  If False, they are concatenated
        along the column axis.  The latter behavior will soon be deprecated.
      activation: Activation function of the inner states.
Initialize the basic LSTM cell.
Initialize the basic LSTM cell .
def __init__(self, num_units, forget_bias=1.0, input_size=None,
               state_is_tuple=True, activation=tanh):
    """Initialize the basic LSTM cell.

    Args:
      num_units: int, The number of units in the LSTM cell.
      forget_bias: float, The bias added to forget gates (see above).
      input_size: Deprecated and unused.
      state_is_tuple: If True, accepted and returned states are 2-tuples of
        the `c_state` and `m_state`.  If False, they are concatenated
        along the column axis.  The latter behavior will soon be deprecated.
      activation: Activation function of the inner states.
    """
    if not state_is_tuple:
      logging.warn("%s: Using a concatenated state is slower and will soon be "
                   "deprecated.  Use state_is_tuple=True.", self)
    if input_size is not None:
      logging.warn("%s: The input_size parameter is deprecated.", self)
    self._num_units = num_units
    self._forget_bias = forget_bias
    self._state_is_tuple = state_is_tuple
    self._activation = activation
def __init__ ( self , num_units , forget_bias = 1.0 , input_size = None , state_is_tuple = True , activation = tanh ) : if not state_is_tuple : logging . warn ( "%s: Using a concatenated state is slower and will soon be " "deprecated.  Use state_is_tuple=True." , self ) if input_size is not None : logging . warn ( "%s: The input_size parameter is deprecated." , self ) self . _num_units = num_units self . _forget_bias = forget_bias self . _state_is_tuple = state_is_tuple self . _activation = activation