Skip to content

Commit

Permalink
Fix logging interval (#2694)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitgr7 committed Jul 25, 2020
1 parent 4794175 commit 8599b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/training_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def increment_accumulated_grad_global_step(self):

def save_train_loop_metrics_to_loggers(self, batch_idx, batch_output):
# when metrics should be logged
should_log_metrics = batch_idx % self.row_log_interval == 0 or self.should_stop
should_log_metrics = (batch_idx + 1) % self.row_log_interval == 0 or self.should_stop
if should_log_metrics or self.fast_dev_run:
# logs user requested information to logger
metrics = batch_output.batch_log_metrics
Expand Down

0 comments on commit 8599b67

Please sign in to comment.