diff --git a/pytorch_lightning/trainer/evaluation_loop.py b/pytorch_lightning/trainer/evaluation_loop.py index b55535784b..b10173ee63 100644 --- a/pytorch_lightning/trainer/evaluation_loop.py +++ b/pytorch_lightning/trainer/evaluation_loop.py @@ -377,12 +377,11 @@ class TrainerEvaluationLoopMixin(ABC): self.add_tqdm_metrics(prog_bar_metrics) # log results of test - if test_mode: - if self.proc_rank == 0: - print('-' * 100) - print('TEST RESULTS') - pprint(prog_bar_metrics) - print('-' * 100) + if test_mode and self.proc_rank == 0 and prog_bar_metrics: + print('-' * 80) + print('TEST RESULTS') + pprint(prog_bar_metrics) + print('-' * 80) # log metrics self.log_metrics(log_metrics, {})