MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / FireResetEnv

Function FireResetEnv

examples/DeepQNetwork/atari_wrapper.py:76–83  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

74
75
76def FireResetEnv(env):
77 if isinstance(env, gym.Wrapper):
78 baseenv = env.unwrapped
79 else:
80 baseenv = env
81 if 'FIRE' in baseenv.get_action_meanings():
82 return _FireResetEnv(env)
83 return env
84
85
86class LimitLength(gym.Wrapper):

Callers 1

get_playerFunction · 0.90

Calls 2

get_action_meaningsMethod · 0.80
_FireResetEnvClass · 0.70

Tested by

no test coverage detected