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

Method __init__

intermediate_source/mario_rl_tutorial.py:171–174  ·  view source on GitHub ↗
(self, env)

Source from the content-addressed store, hash-verified

169
170class GrayScaleObservation(gym.ObservationWrapper):
171 def __init__(self, env):
172 super().__init__(env)
173 obs_shape = self.observation_space.shape[:2]
174 self.observation_space = Box(low=0, high=255, shape=obs_shape, dtype=np.uint8)
175
176 def permute_orientation(self, observation):
177 # permute [H, W, C] array to [C, H, W] tensor

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected