解决tensorflow 2.1.0 下执行sess =Session ()出错的情况
ubuntu2020完美安装tensorflow
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess= tf.compat.v1.Session()
print(sess.run(hello))
以上是解决方法,我的微信公众号是
欢迎关注我的微信公众号:AI科技与算法编程(kangsinx)
完美快速安装tensorflow命令