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
There's a subtle difference between torch.foo(device=xla) vs torch.foo().to(xla) and we should document this in a FAQ section or similar. The first one runs the foo on the TPU. The second one runs the foo on the CPU and then moves the buffer to the TPU.
The text was updated successfully, but these errors were encountered:
📚 Documentation
There's a subtle difference between
torch.foo(device=xla)
vstorch.foo().to(xla)
and we should document this in a FAQ section or similar. The first one runs thefoo
on the TPU. The second one runs thefoo
on the CPU and then moves the buffer to the TPU.The text was updated successfully, but these errors were encountered: