Skip to content

Commit

Permalink
Updated logging.py to PEP8 styleguide (trailing whitespace in comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
olineumann authored and Borda committed Aug 6, 2020
1 parent 4fd1c7d commit a1c0da6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytorch_lightning/trainer/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ def process_output(self, output, train=False):
hiddens = output.get('hiddens')

# iterate over log_metric and progress_bar metric values
# and add it to the callback metric dict because every
# metric value of logging or progressbar could be a candidate
# and add it to the callback metric dict because every
# metric value of logging or progressbar could be a candidate
# for early stopping or similar
#
#
# NOTE: through the dict looping sequence a priority is defined
# so first log metrics values will be added if not existing and
# then progress bar values if not existing in callback and log metric
# then progress bar values if not existing in callback and log metric
for metric_dict in [log_metrics, progress_bar_metrics]:
for key in metric_dict.keys():
if key not in callback_metrics.keys():
Expand Down

0 comments on commit a1c0da6

Please sign in to comment.