model.compile(optimizer=SGD(),loss='categorical_crossentropy',metrics=['accuracy'])
model.fit(x_train,y_train,batch_size=64,epochs=5,validation_data=(x_test,y_test))
ValueError: Error when checking input: expected dense_1_input to have 2 dimensions, but got array with shape (10000, 784, 10)
是前面写错了