MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / add_module

Method add_module

lightx2v/common/modules/weight_module.py:12–14  ·  view source on GitHub ↗
(self, name, module)

Source from the content-addressed store, hash-verified

10 return len(self._modules) == 0 and len(self._parameters) == 0
11
12 def add_module(self, name, module):
13 self._modules[name] = module
14 setattr(self, name, module)
15
16 def register_parameter(self, name, param):
17 self._parameters[name] = param

Callers 15

appendMethod · 0.80
__setitem__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected