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

Method forward

intermediate_source/mario_rl_tutorial.py:436–440  ·  view source on GitHub ↗
(self, input, model)

Source from the content-addressed store, hash-verified

434 p.requires_grad = False
435
436 def forward(self, input, model):
437 if model == "online":
438 return self.online(input)
439 elif model == "target":
440 return self.target(input)
441
442 def __build_cnn(self, c, output_dim):
443 return nn.Sequential(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected