[][src]Function tch::no_grad_guard

pub fn no_grad_guard() -> NoGradGuard

Disables gradient tracking, this will be enabled back when the returned value gets deallocated.