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

code:

import keras

error :

    get_graph = tf_keras_backend.get_graph

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

explain:

這種錯誤是因爲python tensorflow keras 版本呢不匹配。一個成功的案例是 python3.6, tensorflow 1.12 keras 2.2.4

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