MCPcopy Create free account
hub / github.com/TencentARC/MotionCtrl / scale_module

Function scale_module

lvdm/basics.py:33–39  ·  view source on GitHub ↗

Scale the parameters of a module and return it.

(module, scale)

Source from the content-addressed store, hash-verified

31 return module
32
33def scale_module(module, scale):
34 """
35 Scale the parameters of a module and return it.
36 """
37 for p in module.parameters():
38 p.detach().mul_(scale)
39 return module
40
41
42def conv_nd(dims, *args, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected