class_docstr: An RNN cell base class that can implement a stack or queue.
    
class_docstr_tok: ["An","RNN","cell","base","class","that","can","implement","a","stack","or","queue","."]
docstr: Initialize the tuple of state values to zeros except write strengths.
  
  Args:
    batch_size: The size of the current batch.
    dtype: The default datatype to initialize to.
  
  Returns:
    A new NeuralStackState tuple.
docstr_tok: ["Initialize","the","tuple","of","state","values","to","zeros","except","write","strengths",".","Args",":","batch_size",":","The","size","of","the","current","batch",".","dtype",":","The","default","datatype","to","initialize","to",".","Returns",":","A","new","NeuralStackState","tuple","."]
code: def zero_state(self, batch_size, dtype):
      """Initialize the tuple of state values to zeros except write strengths.
  
      Args:
        batch_size: The size of the current batch.
        dtype: The default datatype to initialize to.
  
      Returns:
        A new NeuralStackState tuple.
      """
      parent_state = NeuralStackState(
          *super(NeuralStackCell, self).zero_state(batch_size, dtype)
      )
      return NeuralStackState(
          controller_state=parent_state.controller_state,
          read_values=parent_state.read_values,
          memory_values=parent_state.memory_values,
          read_strengths=parent_state.read_strengths,
          write_strengths=self.initialize_write_strengths(batch_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 5 for calling the NeuralStackCell obj's underlying member method code with example usage: obj.zero_state(batch_size, dtype) and returns: NeuralStackState