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_xs.py:1931–1934 ·
view source on GitHub ↗
(module)
Source
from the content-addressed store, hash-verified
1929
1930
1931
def
zero_module(module):
1932
for
p in module.parameters():
1933
nn.init.zeros_(p)
1934
return
module
1935
1936
1937
def
find_largest_factor(number, max_factor):
Callers
1
make_zero_conv
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected