With the arrival of version 2.1 of Pytorch, Pytorch has defined new interfaces for extending custom hardware, which makes it more convenient to use custom hardware to leverage Pytorch,
GitHub - Ascend/pytorch: Ascend PyTorch adapter (torch_npu). Mirror of https://gitee.com/ascend/pytorch is a good example to use it, but it is too complicated,So does Pytorch have any plans to write a complete routine on how to adapt to custom hardware?