Skip to content

Commit

Permalink
fix gpu template (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon authored Jun 19, 2020
1 parent b5a2f1e commit 4885cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pl_examples/basic_examples/gpu_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main(hparams):
# ------------------------
# 1 INIT LIGHTNING MODEL
# ------------------------
model = LightningTemplateModel(hparams)
model = LightningTemplateModel(**vars(hparams))

# ------------------------
# 2 INIT TRAINER
Expand Down Expand Up @@ -61,7 +61,7 @@ def main(hparams):
'--distributed_backend',
type=str,
default='dp',
help='supports three options dp, ddp, ddp2'
help='supports four options dp, ddp, ddp2, ddp_spawn'
)
parent_parser.add_argument(
'--use_16bit',
Expand Down

0 comments on commit 4885cfa

Please sign in to comment.