Skip to content

Commit

Permalink
Loss format from .3f to .3g in the tqdm (Lightning-AI#4972)
Browse files Browse the repository at this point in the history
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
  • Loading branch information
fjhheras and Borda committed Dec 9, 2020
1 parent bcbba3b commit 068502f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/core/lightning.py
Expand Up @@ -1397,7 +1397,7 @@ def get_progress_bar_dict(self):
if running_train_loss is not None
else float("NaN")
)
tqdm_dict = {"loss": "{:.3f}".format(avg_training_loss)}
tqdm_dict = {"loss": "{:.3g}".format(avg_training_loss)}

if self.trainer.truncated_bptt_steps is not None:
tqdm_dict["split_idx"] = self.trainer.split_idx
Expand Down

0 comments on commit 068502f

Please sign in to comment.