Hi soumith,
Thank you for your prompt responses. I have identified the problem to how the input was being pre-processed before feeding into the model. there were subtle differences which were not easily identifiable by the naked eye.
Currently the results are exactly the same, even till the order of 1e-10.