MCPcopy Index your code
hub / github.com/FireRedTeam/LayerDiffuse-Flux / zero_module

Function zero_module

lib_layerdiffuse/vae.py:19–25  ·  view source on GitHub ↗

Zero out the parameters of a module and return it.

(module)

Source from the content-addressed store, hash-verified

17
18
19def zero_module(module):
20 """
21 Zero out the parameters of a module and return it.
22 """
23 for p in module.parameters():
24 p.detach().zero_()
25 return module
26
27
28class LatentTransparencyOffsetEncoder(torch.nn.Module):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected