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

Method forward

intermediate_source/reinforcement_q_learning.py:239–242  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

237 # Called with either one element to determine next action, or a batch
238 # during optimization. Returns tensor([[left0exp,right0exp]...]).
239 def forward(self, x):
240 x = F.relu(self.layer1(x))
241 x = F.relu(self.layer2(x))
242 return self.layer3(x)
243
244
245######################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected