I also faced same problem when I first tried Google Colab after updating windows10Windows 10. Then I changed and inserted two lines,
- tf.compat.v1.disable_eager_execution()
tf.compat.v1.disable_eager_execution() - sess = tf.compat.v1.Session()
sess = tf.compat.v1.Session()
As a result, everything goes OK