Solved by raghuramank100 in post #2 
              
              
                Thanks for pointing this issue out. There is an error in pytorch/rnn.py at master · pytorch/pytorch · GitHub. Filing an issue to track this at: Quantizable LSTMCell does not work correctly. · Issue #55945 · pytorch/pytorch · GitHub