原因 batch_input_shape input_shape 参数设置错误 解决 设置好这个参数 例如: model.add(Conv1D(64, kernel_size=3, padding='same',batch_input_shape=(None, 10,10)))