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

Method register_parameter

lightx2v/common/modules/weight_module.py:16–18  ·  view source on GitHub ↗
(self, name, param)

Source from the content-addressed store, hash-verified

14 raise ValueError("A weight container can register only one offload group")
15 self.offload_group = OffloadGroup(blocks, device_slots, tuple(checkpoint_prefixes))
16
17 def is_empty(self):
18 return len(self._modules) == 0 and len(self._parameters) == 0
19
20 def add_module(self, name, module):
21 self._modules[name] = module

Callers 11

__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
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected