class_docstr: An subclass of the NeuralStackCell which reads from the opposite direction.
  
  See section 3.2 of Grefenstette et al., 2015.
class_docstr_tok: ["An","subclass","of","the","NeuralStackCell","which","reads","from","the","opposite","direction",".","See","section","3.2","of","Grefenstette","et","al.",",","2015","."]
docstr: Uses mask_pos_lt() instead of mask_pos_gt() to reverse read values.
  
  Args:
    read_head_index: Identifies which read head we're getting the mask for.
  
  Returns:
    A tf.float32 tensor of shape [1, 1, memory_size, memory_size].
docstr_tok: ["Uses","mask_pos_lt","(",")","instead","of","mask_pos_gt","(",")","to","reverse","read","values",".","Args",":","read_head_index",":","Identifies","which","read","head","we","'re","getting","the","mask","for",".","Returns",":","A","tf.float32","tensor","of","shape","[","1",",","1",",","memory_size",",","memory_size","]","."]
code: def get_read_mask(self, read_head_index):
      """Uses mask_pos_lt() instead of mask_pos_gt() to reverse read values.
  
      Args:
        read_head_index: Identifies which read head we're getting the mask for.
  
      Returns:
        A tf.float32 tensor of shape [1, 1, memory_size, memory_size].
      """
      if read_head_index == 0:
          return tf.expand_dims(
              common_layers.mask_pos_gt(
                  self._memory_size, self._memory_size
              ),
              axis=0,
          )
      else:
          raise ValueError("Read head index must be 0 for queue.")
  
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 NeuralQueueCell obj's underlying member method code with example usage: obj.get_read_mask(read_head_index) and returns: tf