import time
time_begin = time.time()
history = model.fit(x_train,train_labels,
validation_split=0.1,
epochs=51,batch_size=10,
shuffle=True)
time_end = time.time()
time = time_end - time_begin
print('time:', time)
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/445751227036180.png "=600 #left")
怎么解决?
ValueError: Error when checking input:expected input_1 to have 4 dimensions, but got array with shape (770, 1024, 1)