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 Freeze for NoGradGuard
impl RefUnwindSafe for NoGradGuard
impl Send for NoGradGuard
impl Sync for NoGradGuard
impl Unpin for NoGradGuard
impl UnwindSafe for NoGradGuard
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more