sgoodfriend's picture
PPO playing procgen-bossfight-easy from https://github.com/sgoodfriend/rl-algo-impls/tree/21ee1ab96a186676e5ed2f8c3185902f7c7bca7a
2bf3589
raw
history blame contribute delete
367 Bytes
import gym
from typing import Any
class IsVectorEnv(gym.Wrapper):
"""
Override to set properties to match gym.vector.VectorEnv
"""
def __init__(self, env: Any) -> None:
super().__init__(env)
self.is_vector_env = True
self.single_observation_space = env.observation_space
self.single_action_space = env.action_space