Skip to content

Commit

Permalink
added reduce ddp results on eval
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jun 30, 2020
1 parent 9f1ed61 commit 069a8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/evaluation_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _evaluate(

def reduce_eval_ddp(self, eval_results):
# ignore bad inputs
if len(eval_results) or eval_results is None:
if eval_results is None or len(eval_results) == 0:
return

for k, v in eval_results.items():
Expand Down

0 comments on commit 069a8a3

Please sign in to comment.