MCPcopy Create free account
hub / github.com/pytorch/tutorials / __init__

Method __init__

intermediate_source/mario_rl_tutorial.py:153–156  ·  view source on GitHub ↗

Return only every `skip`-th frame

(self, env, skip)

Source from the content-addressed store, hash-verified

151
152class SkipFrame(gym.Wrapper):
153 def __init__(self, env, skip):
154 """Return only every `skip`-th frame"""
155 super().__init__(env)
156 self._skip = skip
157
158 def step(self, action):
159 """Repeat action, and sum reward"""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected