MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / zero_init_last_bn

Method zero_init_last_bn

timm/models/sknet.py:75–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 self.drop_path = drop_path
74
75 def zero_init_last_bn(self):
76 nn.init.zeros_(self.conv2.bn.weight)
77
78 def forward(self, x):
79 shortcut = x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected