MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / __init__

Method __init__

models/nets/wrn.py:17–19  ·  view source on GitHub ↗
(self, num_features, alpha=0.1, eps=1e-05, momentum=0.001, affine=True, track_running_stats=True)

Source from the content-addressed store, hash-verified

15 """How Does BN Increase Collapsed Neural Network Filters? (https://arxiv.org/abs/2001.11216)"""
16
17 def __init__(self, num_features, alpha=0.1, eps=1e-05, momentum=0.001, affine=True, track_running_stats=True):
18 super().__init__(num_features, eps, momentum, affine, track_running_stats)
19 self.alpha = alpha
20
21 def forward(self, x):
22 return super().forward(x) + self.alpha

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected