Convert Lasagne to Keras code (CNN -> LSTM)
You need to reshape the output of the Conv2d before you feed into the lstm. The output of Conv2d is 4d whereas the input for LSTM required is 3d.

Just print the output of Conv2d first, that will give you an idea on how to reshape the tensor as input to LSTM.