MCPcopy Create free account
hub / github.com/Intelligent-Computing-Lab-Panda/NDA_SNN / forward

Method forward

models/VGG_models.py:37–43  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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
46def make_layers(cfg, batch_norm=False, in_c=3, **lif_parameters):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected