Base Class for Vector Environments¶
- class xuance.environment.vector_envs.vector_env.VecEnv(num_envs, observation_space, action_space)[源代码]¶
基类:
ABC- abstract close_extras()[源代码]¶
Clean up the extra resources, beyond what’s in this base class. Only runs when not self.closed.
- abstract reset()[源代码]¶
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.