Fix to print scaler value in progress bar (#4053)
* Fix to print scaler value in progress bar * chlog * Fix to print scaler value in progress bar * Fix to print scaler value in progress bar
This commit is contained in:
parent
ce2edf1192
commit
bdbf846029
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue