【报错】AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

报错:

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

 

原因分析:

安装的tensorflow版本和keras版本不匹配

 

解决方法:

只需卸载keras,重新安装tensorflow对应的版本即可。

tensorflow和keras对应的版本:

https://docs.floydhub.com/guides/environments/

【报错】AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'