本人新手,安装tensorflow 后运行官网示例程序,前天还是没问题的,昨天出现了每当输入sess =Session ()语句就停住不动无法输入下条语句的情况,重装后仍是这个情况,请问这个问题要怎么解决?
1条回答 默认 最新
- 源代码杀手 2020-01-10 23:35关注
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess= tf.compat.v1.Session()
print(sess.run(hello))以上是解决方法,我的微信公众号是
欢迎关注解决 无用评论 打赏 举报