MCPcopy
hub / github.com/xiaotudui/pytorch-tutorial / forward

Method forward

src/nn_loss_network.py:29–31  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

27 )
28
29 def forward(self, x):
30 x = self.model1(x)
31 return x
32
33
34loss = nn.CrossEntropyLoss()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected