Skip to content

Commit

Permalink
remove assignment here
Browse files Browse the repository at this point in the history
  • Loading branch information
nrupatunga committed Oct 1, 2020
1 parent f6b745f commit cc16f1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pytorch_lightning/trainer/training_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def on_train_epoch_start(self, epoch):
pass

# update training progress in trainer and model
model.current_epoch = epoch
self.trainer.current_epoch = epoch

# changing gradient according accumulation_scheduler
Expand Down Expand Up @@ -508,7 +507,6 @@ def run_training_epoch(self):
should_check_val = False
for batch_idx, (batch, is_last_batch) in train_dataloader:
self.trainer.batch_idx = batch_idx
model.global_step = self.trainer.global_step

# ------------------------------------
# TRAINING_STEP + TRAINING_STEP_END
Expand Down

0 comments on commit cc16f1b

Please sign in to comment.