Function tch::no_grad_guard
source · [−]pub fn no_grad_guard() -> NoGradGuard
Expand description
Disables gradient tracking, this will be enabled back when the returned value gets deallocated.
pub fn no_grad_guard() -> NoGradGuard
Disables gradient tracking, this will be enabled back when the returned value gets deallocated.