MCPcopy 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
77def 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
84def 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_paramFunction · 0.85

Tested by

no test coverage detected