From 1f685c2882d2bb0755a7ab0ed6819b008780948e Mon Sep 17 00:00:00 2001 From: William Falcon Date: Fri, 10 Apr 2020 08:43:22 -0400 Subject: [PATCH] fix pretty print (#1441) * grid sample * grid sample * grid sample * grid sample * grid sample * changelog * version Co-authored-by: J. Borovec --- CHANGELOG.md | 2 ++ pytorch_lightning/__init__.py | 2 +- pytorch_lightning/trainer/evaluation_loop.py | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cb088e369..a1833c38ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/pytorch_lightning/__init__.py b/pytorch_lightning/__init__.py index 73f3d11fe6..bb7725f50b 100644 --- a/pytorch_lightning/__init__.py +++ b/pytorch_lightning/__init__.py @@ -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' diff --git a/pytorch_lightning/trainer/evaluation_loop.py b/pytorch_lightning/trainer/evaluation_loop.py index ee1ac4adc3..19587509b1 100644 --- a/pytorch_lightning/trainer/evaluation_loop.py +++ b/pytorch_lightning/trainer/evaluation_loop.py @@ -377,10 +377,10 @@ class TrainerEvaluationLoopMixin(ABC): 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