tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess = tf.compat.v1.Session()
print(sess.run(hello))
print(sess.run(teacher_predictions))
print(sess.run(hello))
运行后,可以显示hello的内容
tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess = tf.compat.v1.Session()
print(sess.run(hello))
print(sess.run(teacher_predictions))
print(sess.run(hello))
运行后,可以显示hello的内容