1.测试代码
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('Hello, TensorFlow!')
sess = tf.compat.v1.Session()
print(sess.run(hello))
2.输出结果

版权声明:本文为m0_45176278原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('Hello, TensorFlow!')
sess = tf.compat.v1.Session()
print(sess.run(hello))
