pub struct GradStore<B: Backend> { /* private fields */ }Expand description
Stores gradients for all tensors in a computation graph.
After calling tensor.backward(), you receive a GradStore.
Use grads.get(&tensor) to retrieve the gradient for any tensor.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for GradStore<B>
impl<B> RefUnwindSafe for GradStore<B>
impl<B> Send for GradStore<B>
impl<B> Sync for GradStore<B>
impl<B> Unpin for GradStore<B>
impl<B> UnsafeUnpin for GradStore<B>
impl<B> UnwindSafe for GradStore<B>
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