How use TPU in google colab
问题 Google colab brings TPUs in the Runtime Accelerator. I found an example, How to use TPU in Official Tensorflow github. But the example not worked on google-colaboratory. It stuck on following line: tf.contrib.tpu.keras_to_tpu_model(model, strategy=strategy) When I print available devices on colab it return [] for TPU accelerator. Does anyone knows how to use TPU on colab? 回答1: Here's a Colab-specific TPU example: https://colab.research.google.com/github/tensorflow/tpu/blob/master/tools/colab