import tensorflow as tf
print(tf.version)
print(tf.executing_eagerly()) #True
tf.compat.v1.disable_eager_execution()
print(tf.executing_eagerly()) #False
hello= tf.constant("helllo world")
sess = tf.compat.v1.Session()
print(sess.run(hello))
텐서2에서 즉시실행모드 코드