hydrax.tqdm.tbatches#
- hydrax.tqdm.tbatches(dataloader: Dataloader[D], report_interval: int = 0, description: str = 'train', **kwargs) Iterable[Batch[D]]#
Wraps a
Dataloaderwith tqdm progress bars, yielding eachBatch.- Parameters:
dataloader – The
Dataloaderto wrap. It must bedeterministic, and not have been started viawith.report_interval – Interval, in batches, to check for issues and report. 0 by default, which means reporting is disabled.
description – A description for the progress bar. Defaults to “train”.
kwargs – Additional keyword arguments passed to tqdm.
- Returns:
An iterator over each
Batchproduced by the Dataloader.