'model.eval()' vs 'with torch.no_grad()'

are you saying that torch.no_grad and torch.set_grad_enabled(False) are the same ?

2 Likes