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

Method _forward_impl

Image_Classification/src/models/resnet.py:216–232  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

214 return nn.Sequential(*layers)
215
216 def _forward_impl(self, x):
217 # See note [TorchScript super()]
218 x = self.conv1(x)
219 x = self.bn1(x)
220 x = self.relu(x)
221 x = self.maxpool(x)
222
223 x = self.layer1(x)
224 x = self.layer2(x)
225 x = self.layer3(x)
226 x = self.layer4(x)
227
228 x = self.avgpool(x)
229 x = torch.flatten(x, 1)
230 x = self.fc(x)
231
232 return x
233
234 def forward(self, x):
235 return self._forward_impl(x)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected