a2c-MountainCar-v0 / wrappers /noop_env_seed.py
sgoodfriend's picture
A2C playing MountainCar-v0 from https://github.com/sgoodfriend/rl-algo-impls/tree/0760ef7d52b17f30219a27c18ba52c8895025ae3
0bbce05
raw
history blame
311 Bytes
from typing import List, Optional
from wrappers.vectorable_wrapper import VecotarableWrapper
class NoopEnvSeed(VecotarableWrapper):
"""
Wrapper to stop a seed call going to the underlying environment.
"""
def seed(self, seed: Optional[int] = None) -> Optional[List[int]]:
return None