MCPcopy Create free account
hub / github.com/GanjinZero/BioBART / prefetch_batch

Method prefetch_batch

pretrain_src/dataloader.py:265–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

263 return next(self.dataloaders[batch_iter])
264
265 def prefetch_batch(self):
266 if self.async_dataloading:
267 self.async_worker.prefetch()
268
269 def _get_dataloader(self, dataset: Dataset):
270 return (

Callers 1

trainFunction · 0.45

Calls 1

prefetchMethod · 0.80

Tested by

no test coverage detected