pub struct NoneTape;
Expand description
Contains nothing. When Tape::add_backward_op is called, this struct does nothing.
Trait Implementations
sourceimpl Tape for NoneTape
impl Tape for NoneTape
sourceconst OWNS_TAPE: bool = false
const OWNS_TAPE: bool = false
Whether this object currently owns the GradientTape. This is known at compile time.
fn add_backward_op<F: 'static + FnOnce(&mut Gradients)>(&mut self, _operation: F)
impl Copy for NoneTape
Auto Trait Implementations
impl RefUnwindSafe for NoneTape
impl Send for NoneTape
impl Sync for NoneTape
impl Unpin for NoneTape
impl UnwindSafe for NoneTape
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