MCPcopy Create free account
hub / github.com/360CVGroup/FancyVideo / zero_module

Function zero_module

fancyvideo/models/motion_module.py:20–24  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

18
19
20def zero_module(module):
21 # Zero out the parameters of a module and return it.
22 for p in module.parameters():
23 p.detach().zero_()
24 return module
25
26
27@dataclass

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected