pub trait TlAutodiff: TlExecutor {
type Tape;
// Required methods
fn forward(
&mut self,
graph: &EinsumGraph,
) -> Result<Self::Tensor, Self::Error>;
fn backward(
&mut self,
graph: &EinsumGraph,
loss: &Self::Tensor,
) -> Result<Self::Tape, Self::Error>;
}Expand description
Automatic differentiation interface.
Extends TlExecutor with forward/backward pass capabilities for training.