MCPcopy Create free account
hub / github.com/PKU-YuanGroup/MagicTime / zero_module

Function zero_module

utils/unet_blocks.py:494–498  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

492
493# Animatediff_motion_module
494def zero_module(module):
495 # Zero out the parameters of a module and return it.
496 for p in module.parameters():
497 p.detach().zero_()
498 return module
499
500
501@dataclass

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected