MCPcopy Index your code
hub / github.com/ZHKKKe/MODNet / _init_norm

Method _init_norm

torchscript/modnet_torchscript.py:255–258  ·  view source on GitHub ↗
(self, norm)

Source from the content-addressed store, hash-verified

253 nn.init.constant_(conv.bias, 0)
254
255 def _init_norm(self, norm):
256 if norm.weight is not None:
257 nn.init.constant_(norm.weight, 1)
258 nn.init.constant_(norm.bias, 0)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected