Skip to content

Commit

Permalink
prune
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 23, 2021
1 parent d4cfbdf commit de9b70e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pytorch_lightning/trainer/training_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def on_trainer_init(
self.trainer.batch_idx = 0
self.trainer.num_training_batches = 0
self.trainer.train_dataloader = None
self.automatic_optimization: bool = ...

# If neither max_epochs or max_steps is set, then use existing default of max_epochs = 1000
self.trainer.max_epochs = 1000 if (max_epochs is None and max_steps is None) else max_epochs
Expand Down

0 comments on commit de9b70e

Please sign in to comment.