(self, x: Tensor)
| 386 | return nn.Sequential(*layers) |
| 387 | |
| 388 | def _forward_impl(self, x: Tensor) -> Tensor: |
| 389 | x = self.stem(x) |
| 390 | |
| 391 | x = self.layer1(x) |
| 392 | x = self.layer2(x) |
| 393 | x = self.layer3(x) |
| 394 | x = self.layer4(x) |
| 395 | |
| 396 | x = self.fc(x) |
| 397 | return x |
| 398 | |
| 399 | def forward(self, x: Tensor) -> Tensor: |
| 400 | return self._forward_impl(x) |