MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / forward

Method forward

Image_Classification/src/models/densenet.py:215–221  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

213 nn.init.constant_(m.bias, 0)
214
215 def forward(self, x):
216 features = self.features(x)
217 out = F.relu(features, inplace=False)
218 out = F.adaptive_avg_pool2d(out, (1, 1))
219 out = torch.flatten(out, 1)
220 out = self.classifier(out)
221 return out
222
223
224

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected