2020年解决tensorflow 2.1.0 下执行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))web 以上是解决方法,个人微信公众号是微信 欢迎关注svg
相关文章
相关标签/搜索