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'的主要内容,如果未能解决你的问题,请参考以下文章