Hi,
What is the difference between these two API:
torch::NoGradGuard guard;
torch::autograd::GradMode::set_enabled(false);

Can I use them interchangeably to change weights of a  network?
Thanks,
Afshin