MCPcopy Create free account
hub / github.com/Sirwenhao/Deep-Learning-Notes / forward

Method forward

CV/Pytorch_classification/AlexNet/model.py:36–40  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

34 self._initialize_weights()
35
36 def forward(self, x):
37 x = self.features(x)
38 x = torch.flatten(x, start_dim = 1)
39 x = self.classifier(x)
40 return x
41
42 def _initialize_weights(self):
43 for m in self.modules():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected