PyTorch Forums
'model.eval()' vs 'with torch.no_grad()'
n0obcoder
(n0obcoder)
June 4, 2019, 10:10am
29
are you saying that
torch.no_grad
and
torch.set_grad_enabled(False)
are the same ?
2 Likes
Difference between eval(), torch.no_grad() and with torch.set_grad_enabled()
show post in topic