vpg-PongNoFrameskip-v4 / wrappers /noop_env_seed.py
sgoodfriend's picture
VPG playing PongNoFrameskip-v4 from https://github.com/sgoodfriend/rl-algo-impls/tree/e8bc541d8b5e67bb4d3f2075282463fb61f5f2c6
10ca8cb
raw
history blame
257 Bytes
import gym
from typing import List, Optional
class NoopEnvSeed(gym.Wrapper):
"""
Wrapper to stop a seed call going to the underlying environment.
"""
def seed(self, seed: Optional[int] = None) -> Optional[List[int]]:
return None