Why is device in device_dtype_mixin of type Union[str, torch.device]
?
#9638
Replies: 2 comments 1 reply
-
you can have |
Beta Was this translation helpful? Give feedback.
-
I am wondering in the context of XLAStatsMonitor: where we pass I am unable to test locally since I don't have access to TPUs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Could anyone help me understand in which circumstances device would be a string?
https://github.com/PyTorchLightning/pytorch-lightning/blob/6e124e7207f6459cb43f540cfb5a1c6cc9b00f7a/pytorch_lightning/core/mixins/device_dtype_mixin.py#L39
cc @Borda who last committed this line
Beta Was this translation helpful? Give feedback.
All reactions