parameters: (self,
                 num_units=None,
                 cell_size=None,
                 reuse=None,
                 name="gru_cell")
docstring: Initialize the Block GRU cell.
  
      Args:
        num_units: int, The number of units in the GRU cell.
        cell_size: int, The old (deprecated) name for `num_units`.
        reuse: (optional) boolean describing whether to reuse variables in an
          existing scope.  If not `True`, and the existing scope already has the
          given variables, an error is raised.
        name: String, the name of the layer. Layers with the same name will
          share weights, but to avoid mistakes we require reuse=True in such
          cases.  By default this is "lstm_cell", for variable-name compatibility
          with `tf.compat.v1.nn.rnn_cell.GRUCell`.
  
      Raises:
        ValueError: if both cell_size and num_units are not None;
          or both are None.
docstring_summary: Initialize the Block GRU cell.
docstring_tokens: Initialize the Block GRU cell .
function: def __init__(self,
                 num_units=None,
                 cell_size=None,
                 reuse=None,
                 name="gru_cell"):
      """Initialize the Block GRU cell.
  
      Args:
        num_units: int, The number of units in the GRU cell.
        cell_size: int, The old (deprecated) name for `num_units`.
        reuse: (optional) boolean describing whether to reuse variables in an
          existing scope.  If not `True`, and the existing scope already has the
          given variables, an error is raised.
        name: String, the name of the layer. Layers with the same name will
          share weights, but to avoid mistakes we require reuse=True in such
          cases.  By default this is "lstm_cell", for variable-name compatibility
          with `tf.compat.v1.nn.rnn_cell.GRUCell`.
  
      Raises:
        ValueError: if both cell_size and num_units are not None;
          or both are None.
      """
      super(GRUBlockCell, self).__init__(_reuse=reuse, name=name)
      if (cell_size is None) == (num_units is None):
        raise ValueError(
            "Exactly one of num_units or cell_size must be provided.")
      if num_units is None:
        num_units = cell_size
      self._cell_size = num_units
      # Inputs must be 2-dimensional.
      self.input_spec = input_spec.InputSpec(ndim=2)
function_tokens: def __init__ ( self , num_units = None , cell_size = None , reuse = None , name = "gru_cell" ) : super ( GRUBlockCell , self ) . __init__ ( _reuse = reuse , name = name ) if ( cell_size is None ) == ( num_units is None ) : raise ValueError ( "Exactly one of num_units or cell_size must be provided." ) if num_units is None : num_units = cell_size self . _cell_size = num_units # Inputs must be 2-dimensional. self . input_spec = input_spec . InputSpec ( ndim = 2 )