@akhil_reddy  Yes it should be fine, but I would still check manually by initialising a LSTM, using :getParameters(), updating the bias, and then checking the unrolled weights.
Ah actually that’s an error on my part which I will correct - seems like it’s the 3rd out of 4 blocks according to the source code 25. Your best bet is to check the source code if you have any doubts, and raise an issue with the rnn repo if you’re still stuck as this is not a PyTorch issue.