(self, x)
| 35 | self.add_dim = lambda x: add_dimention(x, self.T) |
| 36 | |
| 37 | def forward(self, x): |
| 38 | x = self.add_dim(x) if len(x.shape) == 4 else x |
| 39 | x = self.features(x) |
| 40 | x = self.avgpool(x) |
| 41 | x = torch.flatten(x, 1) if len(x.shape) == 4 else torch.flatten(x, 2) |
| 42 | x = self.classifier(x) |
| 43 | return x |
| 44 | |
| 45 | |
| 46 | def make_layers(cfg, batch_norm=False, in_c=3, **lif_parameters): |
nothing calls this directly
no outgoing calls
no test coverage detected