pub trait Pullback<OutputCotangent, InputCotangent> {
type Error;
// Required method
fn apply(
self,
cotangent: OutputCotangent,
) -> Result<InputCotangent, Self::Error>;
}Expand description
A one-shot reverse-mode pullback.
Consuming self permits a pullback to own a factorization, Krylov basis,
checkpoint set, or device buffer and release it after one reverse
application. A pullback may also borrow immutable primal inputs through the
generic associated type on VjpRule.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".