XLA error on CPU #9552
Labels
accelerator: tpu
Tensor Processing Unit
bug
Something isn't working
priority: 1
Medium priority task
https://github.com/PyTorchLightning/pytorch-lightning/blob/6e124e7207f6459cb43f540cfb5a1c6cc9b00f7a/pytorch_lightning/utilities/xla_device.py#L75
A somewhat unusual case, but this line causes a TypeError if you are using an XLA-enabled version of pytorch without any TPUs attached. (Google deprecated all of its non-XLA pytorch deep learning images so maybe this will become less unusual over time.)
This is because pytorch/xla returns a
None
and not an empty list if it can't find any devices of the desired type. Could we guard this with anis None or
?The text was updated successfully, but these errors were encountered: