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

Method __init__

models/layers.py:6–11  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

4
5class SeqToANNContainer(nn.Module):
6 def __init__(self, *args):
7 super().__init__()
8 if len(args) == 1:
9 self.module = args[0]
10 else:
11 self.module = nn.Sequential(*args)
12
13 def forward(self, x_seq: torch.Tensor):
14 y_shape = [x_seq.shape[0], x_seq.shape[1]]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected