move_data_to_device
fails with dataclasses with field(init=False)
fields
#9930
Labels
move_data_to_device
fails with dataclasses with field(init=False)
fields
#9930
🐛 Bug
move_data_to_device
has special handling of dataclasses, but in case the dataclass has a non-init field,elem_type(**out)
inapply_to_collection
will failTo Reproduce
Expected behavior
Should run without exceptions
Environment
- numpy: 1.21.2
- pyTorch_debug: False
- pyTorch_version: 1.9.1
- pytorch-lightning: 20211014
- tqdm: 4.62.3
- OS: Linux
- architecture:
- 64bit
-
- processor: x86_64
- python: 3.9.7
The text was updated successfully, but these errors were encountered: