Nono.MA

Use TensorFlow 2.x in Google Colab

MARCH 18, 2020

try:
    %tensorflow_version 2.x
except Exception:
  pass

import tensorflow as tf

Note that %tensorflow_version is only available in Colab and not in regular Python.

CodeTensorflow