Pytorch-lightning: 'LightningTemplateModel' object has no attribute '_lazy_train_dataloader'

Created on 29 Sep 2019  路  3Comments  路  Source: PyTorchLightning/pytorch-lightning

Describe the bug
Try to run the file single_gpu_node_ddp_template.py, to test the code, but got error:

To Reproduce
Steps to reproduce the behavior:

  1. Download folder pytorch-lightning/examples/new_project_templates/
  2. run file: $python ingle_gpu_node_ddp_template.py$
  3. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: ubuntu18
  • pytorch 1.2, cudatoolkit 9.2
  • pytorch_lgihting 0.5

Screenshot from 2019-09-29 14-44-13

bug / fix

All 3 comments

tng changed to train in 0.50

Thanks. Changing the name to train_loader solve the problem. Also, my dataset returns a dict before. I change it to return a tuple, so now I can use ddp option.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeremycochoy picture jeremycochoy  路  25Comments

suvojit-0x55aa picture suvojit-0x55aa  路  29Comments

Anjum48 picture Anjum48  路  28Comments

invisprints picture invisprints  路  26Comments

mRcSchwering picture mRcSchwering  路  50Comments