MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __next__

Method __next__

cdslib/core/data/dataloader/bucket_sampler.py:208–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected