model.eval() might change all modules using self.training internally to change the behavior.
Usually it’s used in nn.Dropout and nn.BatchNorm layers.
Yes, ResNet uses batch norm layers, so you should call model.eval() before testing the model.