Open sesevgen opened 5 years ago
Describe the bug Setting pin_memory: True in yaml under dataloader causes an AttributeError: "AttributeError: 'dict' object has no attribute 'cuda'"
To Reproduce Steps to reproduce the behavior: Set in a configuration file: training: dataloader: pin_memory:True
and run with GPU enabled.
Desktop (please complete the following information):
This can be fixed by adding an explicit conversion from dict to DataDict on line 613 of worker.py, but that shouldn't be necessary. It should be DataDict type in the first place.
Describe the bug Setting pin_memory: True in yaml under dataloader causes an AttributeError: "AttributeError: 'dict' object has no attribute 'cuda'"
To Reproduce Steps to reproduce the behavior: Set in a configuration file: training: dataloader: pin_memory:True
and run with GPU enabled.
Desktop (please complete the following information):