add __len__ for progress_bar (#871)
Summary: We need this so that `progress_bar`s work with pytorch/xla i.e. TPUs. See [here](https://github.com/pytorch/xla/blob/master/torch_xla_py/data_parallel.py#L130). Pull Request resolved: https://github.com/pytorch/fairseq/pull/871 Differential Revision: D16181062 Pulled By: myleott fbshipit-source-id: 02c65033260396c2a243fbb66e31ffc2965f2376
Showing
Please register or sign in to comment