Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
867
def
zero_module(module):
868
for
p in module.parameters():
869
nn.init.zeros_(p)
870
return
module
Callers
7
__init__
Method · 0.70
from_transformer
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
from_transformer
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected