Tensorflow&Keras:Alternatively, you can use the loss function sparse_categorical_crossentropy instead
找到categorical_crossentropy
用sparse_categorical_crossentropy
替换。
model.compile(loss='sparse_categorical_crossentropy', optimizer=sgd, metrics=['accuracy'])