Trait Backward

Source
pub trait Backward<X, Delta = X> {
    type Elem;
    type Output;

    // Required method
    fn backward(
        &mut self,
        input: &X,
        delta: &Delta,
        gamma: Self::Elem,
    ) -> Result<Self::Output>;
}
Expand description

Backward propagate a delta through the system;

Required Associated Types§

Required Methods§

Source

fn backward( &mut self, input: &X, delta: &Delta, gamma: Self::Elem, ) -> Result<Self::Output>

Implementors§

Source§

impl<A, S, T> Backward<ArrayBase<S, Dim<[usize; 1]>>, ArrayBase<T, Dim<[usize; 0]>>> for Params<A, Ix1>
where A: Float + FromPrimitive + ScalarOperand, S: Data<Elem = A>, T: Data<Elem = A>,

Source§

type Elem = A

Source§

type Output = A

Source§

impl<A, S, T> Backward<ArrayBase<S, Dim<[usize; 1]>>, ArrayBase<T, Dim<[usize; 1]>>> for Params<A, Ix2>
where A: Float + FromPrimitive + ScalarOperand, S: Data<Elem = A>, T: Data<Elem = A>,

Source§

type Elem = A

Source§

type Output = A

Source§

impl<A, S, T> Backward<ArrayBase<S, Dim<[usize; 2]>>, ArrayBase<T, Dim<[usize; 1]>>> for Params<A, Ix1>
where A: Float + FromPrimitive + ScalarOperand, S: Data<Elem = A>, T: Data<Elem = A>,

Source§

type Elem = A

Source§

type Output = A

Source§

impl<A, S, T> Backward<ArrayBase<S, Dim<[usize; 2]>>, ArrayBase<T, Dim<[usize; 2]>>> for Params<A, Ix2>
where A: Float + FromPrimitive + ScalarOperand, S: Data<Elem = A>, T: Data<Elem = A>,

Source§

type Elem = A

Source§

type Output = A