MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / __init__

Method __init__

core/utils.py:40–43  ·  view source on GitHub ↗
(self, env, max_episode_steps=None)

Source from the content-addressed store, hash-verified

38
39class TimeLimit(gym.Wrapper):
40 def __init__(self, env, max_episode_steps=None):
41 super(TimeLimit, self).__init__(env)
42 self._max_episode_steps = max_episode_steps
43 self._elapsed_steps = 0
44
45 def step(self, ac):
46 observation, reward, done, info = self.env.step(ac)

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected