Using TPUs with PyTorch

Salvador Medina picture Salvador Medina · Oct 4, 2018 · Viewed 7.9k times · Source

I am trying to use Google Cloud's TPU from Colab. I was able to do it following the tutorial by using Tensorflow.

Does anybody know if it is possible to make use of the TPUs using PyTorch? If so how can I do it? Do you have any example?

Answer

Héctor Neri picture Héctor Neri · Oct 5, 2018

Currently, it's not possible to use Cloud TPU with PyTorch since it's designed specifically for Tensorflow.

But, according to this product news posted three days ago in the Google Cloud blog, "engineers on Google’s TPU team are actively collaborating with core PyTorch developers to connect PyTorch to Cloud TPUs".