Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meshcapade/difflocks
/ apply_wd
Function
apply_wd
k_diffusion/models/modules.py:77–81 ·
view source on GitHub ↗
(module)
Source
from the content-addressed store, hash-verified
75
76
77
def
apply_wd(module):
78
for
name, param in module.named_parameters():
79
if
name.endswith(
"weight"
):
80
tag_param(param,
"wd"
)
81
return
module
82
83
84
def
filter_params(function, module):
Callers
10
__init__
Method · 0.90
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
Calls
1
tag_param
Function · 0.85
Tested by
no test coverage detected