(self, x)
| 30 | self._initialize_weights() |
| 31 | |
| 32 | def forward(self, x): |
| 33 | # N x 3 x 224 x 224 |
| 34 | x = self.features(x) |
| 35 | # N x 512 x 7 x 7 |
| 36 | x = torch.flatten(x, start_dim=1) |
| 37 | # N x 512*7*7 |
| 38 | x = self.classifier(x) |
| 39 | return x |
| 40 | |
| 41 | def _initialize_weights(self): |
| 42 | for m in self.modules(): |
nothing calls this directly
no outgoing calls
no test coverage detected