We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7409af7 commit c7c478bCopy full SHA for c7c478b
fairseq/data/iterators.py
@@ -524,7 +524,7 @@ def _get_iterator_for_epoch(
524
# TODO: Below is a lazy implementation which discard the final batch regardless
525
# of whether it is a full batch or not.
526
527
- total_num_itrs = len(self.epoch_batch_sampler) - 1
+ total_num_itrs = len(itr) - 1
528
itr.take(total_num_itrs)
529
logger.info(f"skip final residual batch, total_num_itrs = {total_num_itrs}")
530
0 commit comments