This question exists as a github issue , too. I would like to build a neural network in Keras which contains both 2D convolutions and an LSTM layer.
The network shou
According to Convolution2D definition your input must be 4-dimensional with dimensions (samples, channels, rows, cols)
. This is the direct reason why are you getting an error.
To resolve that you must use TimeDistributed wrapper. This allows you to use static (not recurrent) layers across the time.