Machine Learning model.eval() and torch.no_grad() in PyTorch We look at what model.eval() and torch.no_grad() each change when a model runs at test time.