class_docstr: An subclass of the NeuralStackCell which reads/writes in both directions.
  
  See section 3.3 of Grefenstette et al., 2015.
class_docstr_tok: ["An","subclass","of","the","NeuralStackCell","which","reads\/writes","in","both","directions",".","See","section","3.3","of","Grefenstette","et","al.",",","2015","."]
code: def __init__(
      self, num_units, memory_size, embedding_size, reuse=None
  ):
      # Override constructor to set 2 read/write heads.
      super(NeuralDequeCell, self).__init__(
          num_units,
          memory_size,
          embedding_size,
          num_read_heads=2,
          num_write_heads=2,
          reuse=reuse,
      )
  
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 to create a new NeuralDequeCell object from inherited base classes: NeuralStackCell with example: obj = NeuralDequeCell(num_units, memory_size, embedding_size, reuse)