fix max_epochs setup in basic example (#1105)
tested only for the CPU version
This commit is contained in:
parent
fb27a771f8
commit
1383f64a5f
|
@ -28,7 +28,7 @@ def main(hparams):
|
|||
# ------------------------
|
||||
# 2 INIT TRAINER
|
||||
# ------------------------
|
||||
trainer = pl.Trainer()
|
||||
trainer = pl.Trainer(max_epochs=hparams.epochs)
|
||||
|
||||
# ------------------------
|
||||
# 3 START TRAINING
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue