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

Method load

lightx2v/common/modules/weight_module.py:20–27  ·  view source on GitHub ↗
(self, weight_dict)

Source from the content-addressed store, hash-verified

18 return len(self._modules) == 0 and len(self._parameters) == 0
19
20 def add_module(self, name, module):
21 self._modules[name] = module
22 setattr(self, name, module)
23
24 def register_parameter(self, name, param):
25 self._parameters[name] = param
26 setattr(self, name, param)
27
28 def load(self, weight_dict):
29 plan = getattr(self, "_block_load_plan", None)
30 if plan is not None:

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected