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

Method forward

beginner_source/basics/quickstart_tutorial.py:106–109  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

104 )
105
106 def forward(self, x):
107 x = self.flatten(x)
108 logits = self.linear_relu_stack(x)
109 return logits
110
111model = NeuralNetwork().to(device)
112print(model)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected