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

Method forward

models/layers.py:26–31  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

24 self.ann_module = module
25
26 def forward(self, x):
27 B, T, *spatial_dims = x.shape
28 out = self.ann_module(x.reshape(B * T, *spatial_dims))
29 BT, *spatial_dims = out.shape
30 out = out.view(B, T, *spatial_dims).contiguous()
31 return out
32
33
34def fire_function(gamma):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected