diff --git a/CHANGELOG.md b/CHANGELOG.md index c693179037..06ed908c1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed - Fixed `current_epoch` property update to reflect true epoch number inside `LightningDataModule`, when `reload_dataloaders_every_epoch=True`. ([#3974](https://github.com/PyTorchLightning/pytorch-lightning/issues/3974)) +- Fixed to print scaler value in progress bar ([#4053](https://github.com/PyTorchLightning/pytorch-lightning/pull/4053)) ## [0.10.0] - 2020-10-07 diff --git a/pytorch_lightning/trainer/connectors/logger_connector.py b/pytorch_lightning/trainer/connectors/logger_connector.py index 6966b95cd8..3fcea00d16 100644 --- a/pytorch_lightning/trainer/connectors/logger_connector.py +++ b/pytorch_lightning/trainer/connectors/logger_connector.py @@ -157,7 +157,7 @@ class LoggerConnector: epoch_pbar_metrics = epoch_logs.get_epoch_pbar_metrics() self.logged_metrics.update(epoch_logger_metrics) - self.progress_bar_metrics.update(epoch_pbar_metrics) + self.add_progress_bar_metrics(epoch_pbar_metrics) # enable the metrics to be monitored self.callback_metrics.update(epoch_logger_metrics) @@ -183,7 +183,7 @@ class LoggerConnector: logger_metrics = reduced_epoch_metrics.get_epoch_log_metrics() pbar_metrics = reduced_epoch_metrics.get_epoch_pbar_metrics() self.logged_metrics.update(logger_metrics) - self.progress_bar_metrics.update(pbar_metrics) + self.add_progress_bar_metrics(pbar_metrics) # enable the metrics to be monitored self.callback_metrics.update(logger_metrics) diff --git a/tests/trainer/logging/test_eval_loop_logging_1_0.py b/tests/trainer/logging/test_eval_loop_logging_1_0.py index 622c4ac474..8ef74fda34 100644 --- a/tests/trainer/logging/test_eval_loop_logging_1_0.py +++ b/tests/trainer/logging/test_eval_loop_logging_1_0.py @@ -63,8 +63,9 @@ def test__validation_step__log(tmpdir): # we don't want to enable val metrics during steps because it is not something that users should do # on purpose DO NOT allow step_b... it's silly to monitor val step metrics - expected_cb_metrics = {'a', 'b', 'a_epoch', 'b_epoch', 'a_step'} callback_metrics = set(trainer.callback_metrics.keys()) + callback_metrics.remove('debug_epoch') + expected_cb_metrics = {'a', 'b', 'a_epoch', 'b_epoch', 'a_step'} assert expected_cb_metrics == callback_metrics