如何修复module tensorflow has no attribute Session以及其产生问题的原因
环境:TensorFlow版本:2.xOS: windows7Python版本:3.7问题:当执行sess = tf.Session(),会得到如下报错信息:Traceback (most recent call last):File "<stdin>", line 1, in <module>AttributeError: module 'tensorflow' has no attribute 'Session'解决在TensorFlow2.x中可以使用tf
原创
2020-06-05 10:54:09 ·
5597 阅读 ·
0 评论