MCPcopy Create free account
hub / github.com/rlcode/reinforcement-learning / forward

Method forward

3-atari/2-ppo.py:55–57  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

53 self.value = _ortho(nn.Linear(512, 1), 1.0)
54
55 def forward(self, x):
56 h = self.conv(x.float() / 255.0)
57 return self.policy(h), self.value(h).squeeze(-1)
58
59
60def compute_gae(rewards, values, dones, last_value):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected