Base Class for Vector Environments¶
- class xuance.environment.vector_envs.vector_env.VecEnv(num_envs, observation_space, action_space)[source]¶
Bases:
ABC- abstractmethod close_extras()[source]¶
Clean up the extra resources, beyond what’s in this base class. Only runs when not self.closed.
- abstractmethod reset()[source]¶
Reset all the environments and return an array of observations, or a dict of observation arrays. If step_async is still doing work, that work will be cancelled and step_wait() should not be called until step_async() is invoked again.