Actually this dimesion error is due to size mismatch, lstm can take input in 3 dim , here this 2dcnn is giving (batch_size,no of channels, m,n), where mxn is the size of spectroogram, reducing at each conv layer. If it was 1dcnn then permute (0,2,1) is okay, so I think i need to read this spectrogram row wise to input lstm layer, how to rehsape it like that?
[batch_size,no of channels, mxn], am I doing it right?
plz guide