PyTorch on XLA Devices — PyTorch/XLA master documentation
PyTorch runs on XLA devices, like TPUs, with the
torch_xla package. This document describes
how to run your models on these devices.
https://pytorch.org/xla/release/2.1/index.html#pytorch-xla-spmd-user-guide