Skip to content

Commit

Permalink
Fix multi-gpu training (fixes #1088)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #1089

Differential Revision: D17108918

Pulled By: myleott

fbshipit-source-id: 818c77a5bbf3b146028991aca64d79b93f144b28
  • Loading branch information
Myle Ott authored and facebook-github-bot committed Aug 29, 2019
1 parent 108f94b commit 0a96d22
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ def train(args, trainer, task, epoch_itr):
valid_subsets = args.valid_subset.split(',')
max_update = args.max_update or math.inf
for i, samples in enumerate(progress, start=epoch_itr.iterations_in_epoch):
samples = [s for s in samples if len(s) > 0]
if len(samples) == 0:
continue

log_output = trainer.train_step(samples)
if log_output is None:
continue
Expand Down

0 comments on commit 0a96d22

Please # to comment.