a2c-MountainCar-v0 / wrappers /is_vector_env.py
sgoodfriend's picture
A2C playing MountainCar-v0 from https://github.com/sgoodfriend/rl-algo-impls/tree/0760ef7d52b17f30219a27c18ba52c8895025ae3
0bbce05
raw
history blame
308 Bytes
from typing import Any
from wrappers.vectorable_wrapper import VecotarableWrapper
class IsVectorEnv(VecotarableWrapper):
"""
Override to set properties to match gym.vector.VectorEnv
"""
def __init__(self, env: Any) -> None:
super().__init__(env)
self.is_vector_env = True