juanko:

I’ve checked every single layer for Keras&Pytorch for the model and before the LSTM layer, all of the outputs are same when the weights initialization are same for both of the framework(manually set it).


That sounds like a good approach!
Could you share the code showing how you set the nn.LSTM parameters and compare the outputs?
I guess that the parameter initialization might not have worked properly.