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

Method forward

intermediate_source/visualizing_gradients_tutorial.py:85–87  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

83 self.layers = nn.Sequential(*layers)
84
85 def forward(self, x):
86 x = torch.flatten(x, 1)
87 return self.layers(x)
88
89
90######################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected