Skip to content

Commit

Permalink
Changed smoothing in tqdm to decrease variability of time remaining b…
Browse files Browse the repository at this point in the history
…etween training / eval (#1194)
  • Loading branch information
pertschuk committed Mar 27, 2020
1 parent 61177cd commit 12b39a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def run_pretrain_routine(self, model: LightningModule):
# init progress bar
pbar = tqdm(leave=True, position=2 * self.process_position,
disable=not self.show_progress_bar, dynamic_ncols=True,
file=sys.stdout)
file=sys.stdout, smoothing=0)
self.main_progress_bar = pbar

# clear cache before training
Expand Down

0 comments on commit 12b39a7

Please sign in to comment.