Backward

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, Error>;
}
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, Error>

Implementors§

Source§

impl<A, S, T> Backward<ArrayBase<S, Dim<[usize; 1]>>, ArrayBase<T, Dim<[usize; 0]>>> for ParamsBase<OwnedRepr<A>, Dim<[usize; 1]>>
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 ParamsBase<OwnedRepr<A>>
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 ParamsBase<OwnedRepr<A>, Dim<[usize; 1]>>
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 ParamsBase<OwnedRepr<A>>
where A: Float + FromPrimitive + ScalarOperand, S: Data<Elem = A>, T: Data<Elem = A>,

Source§

type Elem = A

Source§

type Output = A