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

Method __init__

models/layers.py:79–82  ·  view source on GitHub ↗
(self, channel)

Source from the content-addressed store, hash-verified

77
78class tdBatchNorm(nn.BatchNorm2d):
79 def __init__(self, channel):
80 super(tdBatchNorm, self).__init__(channel)
81 # according to tdBN paper, the initialized weight is changed to alpha*Vth
82 self.weight.data.mul_(0.5)
83
84 def forward(self, x):
85 B, T, *spatial_dims = x.shape

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected