fix a bug when resuming training from the last epoch (#1275)
Summary: If the training stopped in the middle of the last epoch, and then it was resumed from checkpoint, it will not continue the training because `epoch_itr.epoch < max_epoch` is not satisfied. This PR fixed the issue. Pull Request resolved: https://github.com/pytorch/fairseq/pull/1275 Differential Revision: D18483945 Pulled By: myleott fbshipit-source-id: 80df6f73fa17606a79a28e8328bb4c577f504683
Showing
Please register or sign in to comment