AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

Posted 油嘴滑舌

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'相关的知识,希望对你有一定的参考价值。

原因:安装的tensorflow版本和keras版本不匹配,只需卸载keras,重新安装自己tensorflow对应的版本。

Keras与tensorflow版本匹配查询网站

 

以上是关于AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'的主要内容,如果未能解决你的问题,请参考以下文章

类 InstagramSpider(scrapy.Spider): AttributeError: 'module' 对象没有属性 'Spider'

api = twitter.Api() AttributeError: 'module' 对象没有属性 'Api

AttributeError:'module'对象在python中没有属性'windll'

如何修复python2.7中的“AttributeError:'module'对象没有属性'storage'”错误

成功解决AttributeError: module ‘numpy‘ has no attribute ‘polyld‘

hydra安装——AttributeError: module ‘hydra‘ has no attribute ‘main‘