本人新手,安装tensorflow 后运行官网示例程序,前天还是没问题的,昨天出现了每当输入sess =Session ()语句就停住不动无法输入下条语句的情况,重装后仍是这个情况,请问这个问题要怎么解决?
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess= tf.compat.v1.Session()
print(sess.run(hello))
以上是解决方法,我的微信公众号是
欢迎关注