Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync epoch number print in train.py (#905)
Summary: Pull Request resolved: #905 # Context In train.py, we log the number of steps underwent in a epoch here: https://www.internalfb.com/code/fbsource/[9ef12f3ec86db52d063788e881d9f9d3f1209b7e]/fbcode/torchtnt/framework/train.py?lines=276-279&base=d2dcd7009ea1ca4cfb2a5ba2025caa2ec04a7e7a The printed epoch is intentionally +1 since internally torchtnt starts the epoch at 0. However, in a prior print which logs reason why epoch finished, the epoch is not +1. https://www.internalfb.com/code/fbsource/[9ef12f3ec86db52d063788e881d9f9d3f1209b7e]/fbcode/torchtnt/framework/train.py?lines=258-264&base=d2dcd7009ea1ca4cfb2a5ba2025caa2ec04a7e7a # This Diff Add +1 so both prints are synced Reviewed By: anshulverma, vbourgin Differential Revision: D63557368 fbshipit-source-id: 48e9a4a1ebe63abd07354402aefa6c750245bfda
- Loading branch information