Struct tch::NoGradGuard
source · [−]pub struct NoGradGuard { /* private fields */ }
Expand description
A RAII guard that prevents gradient tracking until deallocated.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NoGradGuard
impl Send for NoGradGuard
impl Sync for NoGradGuard
impl Unpin for NoGradGuard
impl UnwindSafe for NoGradGuard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more