
這個bug的解決辦法:
# from tensorflow.keras import datasets, layers, models from tensorflow.python.keras import datasets, layers, models
在tensorflow和Keras中間插入python,可能是因為tensorflow版本問題(我的版本是1.7.0),Keras的目錄是 ~\tensorflow\python\keras,而非 ~\tensorflow\keras
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/198239.html
標籤:Python
上一篇:工齡計算方案
下一篇:Tensorflow機器學習入門——AttributeError: module 'scipy.misc' has no attribute 'toimage'
