def __init__(self, batch_env):
    """Batch of environments inside the TensorFlow graph.

    Args:
      batch_env: Batch environment.
    """
    super(PyFuncBatchEnv, self).__init__(batch_env.observation_space,
                                         batch_env.action_space)
    self._batch_env = batch_env
    with tf.variable_scope("env_temporary"):
      self._observ = tf.Variable(
          tf.zeros((self._batch_env.batch_size,) + self.observ_shape,
                   self.observ_dtype),
          name="observ", trainable=False)
def __init__ ( self , batch_env ) : super ( PyFuncBatchEnv , self ) . __init__ ( batch_env . observation_space , batch_env . action_space ) self . _batch_env = batch_env with tf . variable_scope ( "env_temporary" ) : self . _observ = tf . Variable ( tf . zeros ( ( self . _batch_env . batch_size , ) + self . observ_shape , self . observ_dtype ) , name = "observ" , trainable = False )
Batch of environments inside the TensorFlow graph.

    Args:
      batch_env: Batch environment.