Struct tch::NoGradGuard
source · pub struct NoGradGuard { /* private fields */ }
Expand description
A RAII guard that prevents gradient tracking until deallocated.
pub struct NoGradGuard { /* private fields */ }
A RAII guard that prevents gradient tracking until deallocated.