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

Method __init__

lightx2v/common/modules/weight_module.py:192–197  ·  view source on GitHub ↗
(self, modules=None)

Source from the content-addressed store, hash-verified

190
191class WeightModuleList(WeightModule):
192 def __init__(self, modules=None):
193 super().__init__()
194 self._list = []
195 if modules is not None:
196 for idx, module in enumerate(modules):
197 self.append(module)
198
199 def append(self, module):
200 idx = len(self._list)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected