Slightly different inference results

I trained my model with pytorch 1.7 but recently upgraded to pytorch 1.11 and did an inference with the same code and exact same data. I get predictions that are off (+/-) by 0.02 for my binary classifier. Any reason why?

Please share the code