title: Input 0 of layer conv1d_2 is incompatible with the layer: : expected min_ndim=3, found ndim=2. Full shape received: (None, 128). To develop LSTM-CNN
body: <p>I am trying to incorporate a CNN layer into the LSTM network as shown.</p>
  <pre><code>model = Sequential()
  model.add(LSTM(64, return_sequences = True, input_shape=(X_train.shape[1], X_train.shape[2]),activation='relu'))
  model.add(Dropout(0.1)) model.add(LSTM(128, activation= 'relu')) 
  model.add(Conv1D(32, kernel_size=3, activation='relu'))
  model.add(Flatten()) model.add(Dense(1)) 
  
  model.compile(loss='mean_squared_error', optimizer='adam')
  </code></pre>
  <p>But it is giving the following error about the input shape. Please help to resolve the issue.</p>
  <p><img src="https://i.stack.imgur.com/38Zxp.jpg" alt="screenshot of error" /></p>