Using Google CoLab with GPU or TPU

If you just want to test a deep learning model quickly, you can use the online tool Google CoLab , there you also have the possibility to use a GPU and even for free.

Activate GPU or TPU in notebook

By default the notebook runs on the CPU. If you want to run the calculations faster, you have to activate the hardware acceleration first.

If you have a notebook open, you have to click on “Runtime” in the menu and then on “Change runtime type”

A popup opens where you can choose if you want to use a GPU or a TPU for this notebook.

Now you can load your Keras or Tensorflow models and run them much faster.

Leave a Reply

Your email address will not be published.

Captcha loading...