I have read a blog where its wriiten that ’ The input  of our fully connected nn.Linear()  layer requires an input size corresponding to the number of hidden nodes in the preceding LSTM layer.

That explains why my codes only have the last sequence. Ty for that. So use only the last sequence of the LSTM. For the error, could you copy your entire code snippet so I can try and reproduce the error. That looks like an error in the convolution layers.