Trait Grad

Source
pub trait Grad {
    type Args: Identifiable;
    type Gradient: StoreExt<Self::Args>;

    // Required methods
    fn grad(&self) -> Self::Gradient;
    fn grad_at(&self, wrt: <Self::Args as Identifiable>::Id) -> Self::Args;
}

Required Associated Types§

Required Methods§

Source

fn grad(&self) -> Self::Gradient

Source

fn grad_at(&self, wrt: <Self::Args as Identifiable>::Id) -> Self::Args

Implementors§