pub trait Tape<E, D: Storage<E>>: Default + Merge<Self> + Merge<NoneTape> {
const OWNS_TAPE: bool;
// Required method
fn add_backward_op<F>(&mut self, operation: F)
where F: 'static + FnOnce(&mut Gradients<E, D>) -> Result<(), D::Err>;
}
Expand description
Something that can track backward operations.