ModuleNotFoundError: No module named ‘keras.engine.topology‘

from keras.engine.topology import Layer, InputSpec 

改为

from tensorflow.python.keras.layers import Layer, InputSpec

你可能感兴趣的:(Keras,keras,深度学习,tensorflow)