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_sparsectrl.py:785–788 ·
view source on GitHub ↗
(module: nn.Module)
Source
from the content-addressed store, hash-verified
783
784
# Copied from diffusers.models.controlnet.zero_module
785
def
zero_module(module: nn.Module) -> nn.Module:
786
for
p in module.parameters():
787
nn.init.zeros_(p)
788
return
module
Callers
2
__init__
Method · 0.70
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected