When I am executing the command sess = tf.Session() in Tensorflow 2.0 environment, I am getting an error message as below:
sess = tf.Session()
Traceback (most recent
try this
import tensorflow as tf tf.compat.v1.disable_eager_execution() hello = tf.constant('Hello, TensorFlow!') sess = tf.compat.v1.Session() print(sess.run(hello))