Changing tensorflow versions in google colab
Usually google colab comes with tensorflow version 2.x. Lets say we have to experiment with version 1.x. Below is the syntax to change the tensorflow version.
%tensorflow_version 1.x
Check https://colab.research.google.com/notebooks/tensorflow_version.ipynb#scrollTo=NeWVBhf1VxlH for more details