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

Method __next__

cdslib/core/data/dataloader/batch_preparer.py:283–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

281 return self
282
283 def __next__(self):
284 # logging.debug(f"before next(dataloader_iter): {psutil.virtual_memory().available / (1024 ** 2)} MB")
285 batch_data = next(self.dataloader_iter)
286 # logging.debug(f"after next(dataloader_iter): {psutil.virtual_memory().available / (1024 ** 2)} MB")
287 return batch_data # output defined by the collate_fn

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected