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

Method __init__

models/layers.py:54–58  ·  view source on GitHub ↗
(self, thresh=0.5, tau=0.25, gamma=1.0)

Source from the content-addressed store, hash-verified

52
53class LIFSpike(nn.Module):
54 def __init__(self, thresh=0.5, tau=0.25, gamma=1.0):
55 super(LIFSpike, self).__init__()
56 self.thresh = thresh
57 self.tau = tau
58 self.gamma = gamma
59
60 def forward(self, x):
61 mem = torch.zeros_like(x[:, 0])

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected