Solved by Lewis in post #4 
              
              
                Hi. The outputs for the LSTM is shown in the attached figure. [Capture] 
The output shape for h_n would be (num_layers * num_directions, batch, hidden_size). This is basically the output for the last timestep. Your output is (2,1,1500) so you are using 2 layers*1 (unidirectional) , 1 sample and a hi…