Skip to content

Commit

Permalink
simplified metric check in base logger
Browse files Browse the repository at this point in the history
  • Loading branch information
olineumann authored Apr 15, 2020
1 parent a9cabc6 commit b446ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/loggers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def agg_and_log_metrics(self, metrics: Dict[str, float], step: Optional[int] = N
"""
agg_step, metrics_to_log = self._aggregate_metrics(metrics=metrics, step=step)

if metrics_to_log is not None and metrics_to_log != {}:
if metrics_to_log:
self.log_metrics(metrics=metrics_to_log, step=agg_step)

@abstractmethod
Expand Down

0 comments on commit b446ed0

Please sign in to comment.