fix log printing in progress bar (#778)
Summary: In the current progress bar, the counter for log_interval will always start from 0, which is not correct if reloading from a checkpoint in the middle of an epoch. This fix obtains the offset from the iterator to set the counter correctly. Pull Request resolved: https://github.com/pytorch/fairseq/pull/778 Differential Revision: D15739953 Pulled By: myleott fbshipit-source-id: a1d13403ec5783b22e01d7cb63874fd8dea7f8b0
Showing
Please register or sign in to comment