class_docstr: Batch of environments inside the TensorFlow graph.
  
  The batch of environments will be stepped and reset inside of the graph using
  a tf.py_func(). The current batch of observations, actions, rewards, and done
  flags are held in according variables.
class_docstr_tok: ["Batch","of","environments","inside","the","TensorFlow","graph",".","The","batch","of","environments","will","be","stepped","and","reset","inside","of","the","graph","using","a","tf.py_func","(",")",".","The","current","batch","of","observations",",","actions",",","rewards",",","and","done","flags","are","held","in","according","variables","."]
docstr: Reset the batch of environments.
  
  Args:
    indices: The batch indices of the environments to reset; defaults to all.
  
  Returns:
    Batch tensor of the new observations.
docstr_tok: ["Reset","the","batch","of","environments",".","Args",":","indices",":","The","batch","indices","of","the","environments","to","reset",";","defaults","to","all",".","Returns",":","Batch","tensor","of","the","new","observations","."]
code: def _reset_non_empty(self, indices):
      """Reset the batch of environments.
  
      Args:
        indices: The batch indices of the environments to reset; defaults to all.
  
      Returns:
        Batch tensor of the new observations.
      """
      observ = tf.py_func(
          self._batch_env.reset,
          [indices],
          self.observ_dtype,
          name="reset",
      )
      observ.set_shape(
          indices.get_shape().concatenate(self.observ_shape)
      )
      with tf.control_dependencies(
          [tf.scatter_update(self._observ, indices, observ)]
      ):
          return tf.identity(observ)
  
file_path: tensor2tensor/tensor2tensor/rl/envs/py_func_batch_env.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.rl.envs.in_graph_batch_env import InGraphBatchEnv
  import tensorflow.compat.v1
label_desc: Use image node_id 8 for calling the PyFuncBatchEnv obj's underlying member method code with example usage: obj._reset_non_empty(indices) and returns: tf