Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loss reporting (facebookresearch#453)
Summary: Pull Request resolved: facebookresearch#453 When computing average loss for train/eval/test, loss across different batches should be weighted with batch size. This doesn't matter for standard training where most batches are the full batch size except the last. However, when training in a massively distributed fashion (eg: for Federated Learning), data is split into small sizes. Many batches are not 'complete' batches, so weighting by batch size is important. Reviewed By: gardenia22 Differential Revision: D14791247 fbshipit-source-id: 57b1142638755868a208dad233070a78537c7f3e
- Loading branch information