原文:AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

解決辦法:使用tf.compat.v .get default graph獲取圖而不是tf.get default graph。 ...

2019-10-22 11:29 0 794 推薦指數:

查看詳情

module 'tensorflow' has no attribute 'get_default_graph'

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

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