MCPcopy Index your code
hub / github.com/MotrixLab/MotionDiffuse / zero_module

Function zero_module

text2motion/models/transformer.py:51–57  ·  view source on GitHub ↗

Zero out the parameters of a module and return it.

(module)

Source from the content-addressed store, hash-verified

49
50
51def zero_module(module):
52 """
53 Zero out the parameters of a module and return it.
54 """
55 for p in module.parameters():
56 p.detach().zero_()
57 return module
58
59
60class StylizationBlock(nn.Module):

Callers 3

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected