(self, name, module)
| 10 | def register_offload_group(self, blocks, device_slots, checkpoint_prefixes): |
| 11 | from lightx2v.common.offload.block_loader import OffloadGroup |
| 12 | |
| 13 | if self.offload_group is not None: |
| 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): |
no outgoing calls
no test coverage detected