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

Method __setitem__

lightx2v/common/modules/weight_module.py:207–209  ·  view source on GitHub ↗
(self, idx, module)

Source from the content-addressed store, hash-verified

205 return self._list[idx]
206
207 def __setitem__(self, idx, module):
208 self._list[idx] = module
209 self.add_module(str(idx), module)
210
211 def __len__(self):
212 return len(self._list)

Callers

nothing calls this directly

Calls 1

add_moduleMethod · 0.80

Tested by

no test coverage detected