Skip to content

Commit 1f685c2

Browse files
williamFalconBorda
andauthored
fix pretty print (#1441)
* grid sample * grid sample * grid sample * grid sample * grid sample * changelog * version Co-authored-by: J. Borovec <[email protected]>
1 parent 8dd9b80 commit 1f685c2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1515
- Fixed default `DistributedSampler` for DDP training ([#1425](https://github.com/PyTorchLightning/pytorch-lightning/pull/1425))
1616
- Fixed workers warning not on windows ([#1430](https://github.com/PyTorchLightning/pytorch-lightning/pull/1430))
1717
- Fixed returning tuple from `run_training_batch` ([#1431](https://github.com/PyTorchLightning/pytorch-lightning/pull/1431))
18+
- Fixed gradient clipping ([#1438](https://github.com/PyTorchLightning/pytorch-lightning/pull/1438))
19+
- Fixed pretty print ([#1441](https://github.com/PyTorchLightning/pytorch-lightning/pull/1441))
1820

1921
## [0.7.2] - 2020-04-07
2022

pytorch_lightning/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Root package info."""
22

3-
__version__ = '0.7.3rc1'
3+
__version__ = '0.7.3rc2'
44
__author__ = 'William Falcon et al.'
55
__author_email__ = '[email protected]'
66
__license__ = 'Apache-2.0'

pytorch_lightning/trainer/evaluation_loop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ def run_evaluation(self, test_mode: bool = False):
377377
self.add_tqdm_metrics(prog_bar_metrics)
378378

379379
# log results of test
380-
if test_mode and self.proc_rank == 0 and prog_bar_metrics:
380+
if test_mode and self.proc_rank == 0 and len(callback_metrics) > 0:
381381
print('-' * 80)
382382
print('TEST RESULTS')
383-
pprint(prog_bar_metrics)
383+
pprint(callback_metrics)
384384
print('-' * 80)
385385

386386
# log metrics

0 commit comments

Comments
 (0)