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

Method __getitem__

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

Source from the content-addressed store, hash-verified

202 for m in module[i]._modules.values():
203 if m is not None and hasattr(m, "to_cuda"):
204 m.to_cuda(non_blocking=True)
205 for m in module[i]._parameters.values():
206 if m is not None and hasattr(m, "to_cuda"):
207 m.to_cuda(non_blocking=True)
208 else:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected