title: Evaluating pytorch models: `with torch.no_grad` vs `model.eval()`
body: <p>When I want to evaluate the performance of my model on the validation set, is it preferred to use <code>with torch.no_grad:</code> or <code>model.eval()</code>?</p>