Function tch::no_grad_guard[][src]

pub fn no_grad_guard() -> NoGradGuard

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