You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is that torch.tensor(0.5, dtype=pred_ctr_x.dtype) is a CPU tensor (while both pred_ctr_x and pred_w are XLA tensors) and currently Xla requires lhs of a binary operation to be a XLA tensor.
To workaround this you can switch the order of the mul make it
@SharanSMenon I created the PR above in pytorch/vision to make the device more clear. If you see more cases like this, please feel free to send a PR to pytorch/vision! Thanks!
❓ Questions and Help
I get the following error when trying to train Mask RCNN. I was following the following tutorial:
https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html
I got it to work on
cuda
and all I did was change the device toxla
.The text was updated successfully, but these errors were encountered: