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

Method forward

distributed/rpc/rl/main.py:65–70  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

63 self.rewards = []
64
65 def forward(self, x):
66 x = self.affine1(x)
67 x = self.dropout(x)
68 x = F.relu(x)
69 action_scores = self.affine2(x)
70 return F.softmax(action_scores, dim=1)
71
72class Observer:
73 r"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected