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

Method forward

beginner_source/basics/buildmodel_tutorial.py:60–63  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

58 )
59
60 def forward(self, x):
61 x = self.flatten(x)
62 logits = self.linear_relu_stack(x)
63 return logits
64
65##############################################
66# We create an instance of ``NeuralNetwork``, and move it to the ``device``, and print

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected