how to know if gpu is being used in colab code example
Example: how to check gpu activity colab
#On the left side you can open Terminal ('>_' with black background)
#You can run commands from there even when some cell is running
#Write command to see GPU usage in real-time:
$ watch nvidia-smi