parameters: (self)
return_statement: return tpu_ops.infeed_dequeue_tuple(
          dtypes=self._tuple_types, shapes=sharded_shapes, name=full_name)
docstring: Generates the device-side Op to dequeue a tuple from the queue.
  
      Implicitly freezes the queue configuration if it is not already
      frozen, which will raise errors if the shapes and types have not
      been fully specified.
  
      Returns:
        A list of Outputs corresponding to a shard of infeed dequeued
        into XLA, suitable for use within a replicated block.
  
      Raises:
        ValueError: if the types or shapes of the tuple elements have not been
        set; or if a dequeue op has already been generated.
docstring_summary: Generates the device-side Op to dequeue a tuple from the queue.
docstring_tokens: Generates the device - side Op to dequeue a tuple from the queue .
function: def generate_dequeue_op(self):
      """Generates the device-side Op to dequeue a tuple from the queue.
  
      Implicitly freezes the queue configuration if it is not already
      frozen, which will raise errors if the shapes and types have not
      been fully specified.
  
      Returns:
        A list of Outputs corresponding to a shard of infeed dequeued
        into XLA, suitable for use within a replicated block.
  
      Raises:
        ValueError: if the types or shapes of the tuple elements have not been
        set; or if a dequeue op has already been generated.
      """
      self.freeze()
      if self._generated_dequeue_op:
        raise ValueError("Can't generate two dequeue Ops from the same queue")
      self._generated_dequeue_op = True
      full_name = "%s/dequeue" % self._name
      sharded_shapes = [
          policy.get_sharded_shape(shape)
          for (shape, policy) in zip(self._tuple_shapes, self._sharding_policies)
      ]
      return tpu_ops.infeed_dequeue_tuple(
          dtypes=self._tuple_types, shapes=sharded_shapes, name=full_name)
function_tokens: def generate_dequeue_op ( self ) : self . freeze ( ) if self . _generated_dequeue_op : raise ValueError ( "Can't generate two dequeue Ops from the same queue" ) self . _generated_dequeue_op = True full_name = "%s/dequeue" % self . _name sharded_shapes = [ policy . get_sharded_shape ( shape ) for ( shape , policy ) in zip ( self . _tuple_shapes , self . _sharding_policies ) ] return tpu_ops . infeed_dequeue_tuple ( dtypes = self . _tuple_types , shapes = sharded_shapes , name = full_name )