(self)
| 206 | return self |
| 207 | |
| 208 | def __next__(self): |
| 209 | if self.batch_idx < self.total_batches: |
| 210 | local_idxs = self.all_batches[self.batch_idx] |
| 211 | gidxs = [self.global_idxs[i] for i in local_idxs] |
| 212 | self.batch_idx += 1 |
| 213 | return gidxs |
| 214 | else: |
| 215 | raise StopIteration |
nothing calls this directly
no outgoing calls
no test coverage detected