pub struct WithTape(_);
Expand description
Contains a boxed GradientTape. When TapeHolder::add_operation is called, this function passes the operation directly to GradientTape.
Trait Implementations
sourceimpl TapeHolder for WithTape
impl TapeHolder for WithTape
fn add_operation<F: 'static + FnOnce(&mut Gradients)>(&mut self, operation: F)
Auto Trait Implementations
impl !RefUnwindSafe for WithTape
impl !Send for WithTape
impl !Sync for WithTape
impl Unpin for WithTape
impl !UnwindSafe for WithTape
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