跳到正文
原文
AGI Hunt· kuanhoong·· 16 天前AI 评分43

一行代码把 PyTorch 搬上 Google TPU:cuda 换 tpu 即可

AI 导读

把 PyTorch 的设备选择从 cuda 改成 tpu,一行代码即可将代码迁移到 Google TPU 上运行,并配有 11 分钟的完整视频教程。这一技巧由 kuanhoong 分享。

来源:AGI Hunt · agihunt.info