MCPcopy Create free account
hub / github.com/MatrixTeam-AI/RAIN / zero_module

Function zero_module

src/models/motion_module.py:15–19  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

13
14
15def zero_module(module):
16 # Zero out the parameters of a module and return it.
17 for p in module.parameters():
18 p.detach().zero_()
19 return module
20
21
22@dataclass

Callers 2

__init__Method · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected