【報錯】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/

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章