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

Method forward

beginner_source/knowledge_distillation_tutorial.py:150–154  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

148 )
149
150 def forward(self, x):
151 x = self.features(x)
152 x = torch.flatten(x, 1)
153 x = self.classifier(x)
154 return x
155
156######################################################################
157# We employ 2 functions to help us produce and evaluate the results on our original classification task.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected