MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / zero_module

Function zero_module

diffusers/src/diffusers/models/controlnet.py:867–870  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

865
866
867def zero_module(module):
868 for p in module.parameters():
869 nn.init.zeros_(p)
870 return module

Callers 7

__init__Method · 0.70
from_transformerMethod · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
from_transformerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected