Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit b880744

Browse files
Dmitriy Genzelfacebook-github-bot
authored andcommitted
Fix a bad merge from D24154657 - second try
Summary: This removes a line that reset the dummy batch in begin_epoch. In actuality the batch is reset in get_{train,valid}_iterator, and this line was resetting it to None unnecessarily. Reviewed By: joshim5, jhcross Differential Revision: D24157057 fbshipit-source-id: 59ac68327094ceff70f66d7b471fa810997fe84e
1 parent 63aca3f commit b880744

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎fairseq/trainer.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,6 @@ def begin_epoch(self, epoch):
413413
# task specific setup per epoch
414414
self.task.begin_epoch(epoch, self.get_model())
415415

416-
# reset dummy batch
417-
self._dummy_batch = None
418-
419416
if self.tpu:
420417
import torch_xla.core.xla_model as xm
421418

0 commit comments

Comments
 (0)