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

<ul>
<li><code>with torch.no_grad:</code></li>
</ul>

<p>Or</p>

<ul>
<li><code>model.eval()</code></li>
</ul>
