Skip to content

Commit

Permalink
fix pretty print (#1441)
Browse files Browse the repository at this point in the history
* grid sample

* grid sample

* grid sample

* grid sample

* grid sample

* changelog

* version

Co-authored-by: J. Borovec <jirka.borovec@seznam.cz>
  • Loading branch information
williamFalcon and Borda committed Apr 10, 2020
1 parent 8dd9b80 commit 1f685c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Fixed default `DistributedSampler` for DDP training ([#1425](https://github.com/PyTorchLightning/pytorch-lightning/pull/1425))
- Fixed workers warning not on windows ([#1430](https://github.com/PyTorchLightning/pytorch-lightning/pull/1430))
- Fixed returning tuple from `run_training_batch` ([#1431](https://github.com/PyTorchLightning/pytorch-lightning/pull/1431))
- Fixed gradient clipping ([#1438](https://github.com/PyTorchLightning/pytorch-lightning/pull/1438))
- Fixed pretty print ([#1441](https://github.com/PyTorchLightning/pytorch-lightning/pull/1441))

## [0.7.2] - 2020-04-07

Expand Down
2 changes: 1 addition & 1 deletion pytorch_lightning/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Root package info."""

__version__ = '0.7.3rc1'
__version__ = '0.7.3rc2'
__author__ = 'William Falcon et al.'
__author_email__ = 'waf2107@columbia.edu'
__license__ = 'Apache-2.0'
Expand Down
4 changes: 2 additions & 2 deletions pytorch_lightning/trainer/evaluation_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ def run_evaluation(self, test_mode: bool = False):
self.add_tqdm_metrics(prog_bar_metrics)

# log results of test
if test_mode and self.proc_rank == 0 and prog_bar_metrics:
if test_mode and self.proc_rank == 0 and len(callback_metrics) > 0:
print('-' * 80)
print('TEST RESULTS')
pprint(prog_bar_metrics)
pprint(callback_metrics)
print('-' * 80)

# log metrics
Expand Down

0 comments on commit 1f685c2

Please sign in to comment.