Stack multiple keras lstm layers
I'm using Keras 2.1.* and want to stack multiple keras lstm layers into one model.
I was trying something like this.
model = Sequential() model.add(LSTM(10, input_shape =(n, s))) model.add(LSTM(10))
but it didn't work and I get the following error.
Exception: Input 0 is incompatible with layer lstm_2: expected ndim=3, found ndim=2