I am getting this error only when my batch size is greater than 1 This is my model
model=Sequential([keras.layers.LSTM(50)]) model.compile(loss="mse"