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

Method forward

beginner_source/basics/optimization_tutorial.py:62–65  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

60 )
61
62 def forward(self, x):
63 x = self.flatten(x)
64 logits = self.linear_relu_stack(x)
65 return logits
66
67model = NeuralNetwork()
68

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected