Skip to content

Commit

Permalink
fix max_epochs setup in basic example (Lightning-AI#1105)
Browse files Browse the repository at this point in the history
tested only for the CPU version
  • Loading branch information
oplatek authored and tullie committed Apr 3, 2020
1 parent 81b24cc commit d0f6f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pl_examples/basic_examples/cpu_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main(hparams):
# ------------------------
# 2 INIT TRAINER
# ------------------------
trainer = pl.Trainer()
trainer = pl.Trainer(max_epochs=hparams.epochs)

# ------------------------
# 3 START TRAINING
Expand Down
1 change: 1 addition & 0 deletions pl_examples/basic_examples/gpu_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def main(hparams):
# 2 INIT TRAINER
# ------------------------
trainer = pl.Trainer(
max_epochs=hparams.epochs,
gpus=hparams.gpus,
distributed_backend=hparams.distributed_backend,
use_amp=hparams.use_16bit
Expand Down

0 comments on commit d0f6f71

Please sign in to comment.