Torch.no_grad() affecting outputs/loss

Could you post a small code snippet showing this problem?
I would like to reproduce this issue, as it might be a bug, and couldn’t reproduce it so far.