原文:成功解決 AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

在導入keras包時出現這個問題,是因為安裝的tensorflow版本和keras版本不匹配,只需卸載keras,重新安裝自己tensorflow對應的版本就OK了。可以在這個網址查看tensorflow和keras對應的版本:https: docs.floydhub.com guides environments ...

2019-12-10 11:30 0 5114 推薦指數:

查看詳情

module 'tensorflow' has no attribute 'get_default_graph'

module 'tensorflow' has no attribute 'get_default_graph' 當我使用kerastensorflow做深度學習的時候,python3.6報了這個錯誤,這個問題源自於kerasTensorFlow的版本過高導致模塊不存在或者已經更改不再兼容 ...

Fri Mar 29 04:15:00 CST 2019 0 5115
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM