Solved by lelouedec in post #2 
              
              
                Good morning @andreiliphd, 
I believe LSTM outputs siomething like this : output, (h_n, c_n) 
Maybe you only want to apply your tanh on the “output” ? So you should do : 
torch.tanh(self.lstm1(x)[0])