Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Francis-Rings/MotionFollower
/ zero_module
Function
zero_module
src/models/motion_module.py:14–18 ·
view source on GitHub ↗
(module)
Source
from the content-addressed store, hash-verified
12
13
14
def
zero_module(module):
15
# Zero out the parameters of a module and return it.
16
for
p in module.parameters():
17
p.detach().zero_()
18
return
module
19
20
21
@dataclass
Callers
2
__init__
Method · 0.90
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected