Hi,
You may have batch normalization layers. If you have, model.eval() followed by a context block of torch.no_grad() is the proper way of doing the evaluation. Otherwise, new batch statistics will be used in the evaluation phase(/ test phase) which will produce different results.
Thanks