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

Method __init__

distributed/rpc/rl/main.py:85–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 other applications with much more expensive environment.
84 """
85 def __init__(self):
86 self.id = rpc.get_worker_info().id
87 self.env = gym.make('CartPole-v1')
88 self.env.reset(seed=args.seed)
89
90 def run_episode(self, agent_rref, n_steps):
91 r"""

Callers

nothing calls this directly

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected