class_docstr: An encoder-decoder T2TModel that uses NeuralStackCells.
    
class_docstr_tok: ["An","encoder-decoder","T2TModel","that","uses","NeuralStackCells","."]
docstr: Build an RNN cell.
  
  This is exposed as its own function so that it can be overridden to provide
  different types of RNN cells.
  
  Args:
    hidden_size: The hidden size of the cell.
  
  Returns:
    A new RNNCell with the given hidden size.
docstr_tok: ["Build","an","RNN","cell",".","This","is","exposed","as","its","own","function","so","that","it","can","be","overridden","to","provide","different","types","of","RNN","cells",".","Args",":","hidden_size",":","The","hidden","size","of","the","cell",".","Returns",":","A","new","RNNCell","with","the","given","hidden","size","."]
code: def cell(self, hidden_size):
      """Build an RNN cell.
  
      This is exposed as its own function so that it can be overridden to provide
      different types of RNN cells.
  
      Args:
        hidden_size: The hidden size of the cell.
  
      Returns:
        A new RNNCell with the given hidden size.
      """
      return NeuralStackCell(
          hidden_size,
          self._hparams.memory_size,
          self._hparams.embedding_size,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the NeuralStackModel obj's underlying member method code with example usage: obj.cell(hidden_size) and returns: NeuralStackCell