Not able to connect to GPU on Google Colab
In Google Colab you just need to specify the use of GPUs in the menu above. Click:

Edit &gt; Notebook settings &gt; 


and then select Hardware accelerator to GPU.

At that point, if you type in a cell:

import tensorflow as tf
tf.test.is_gpu_available()


It should return True.