ReLUActivation

Trait ReLUActivation 

Source
pub trait ReLUActivation {
    type Output;

    // Required methods
    fn relu(&self) -> Self::Output;
    fn relu_derivative(&self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn relu(&self) -> Self::Output

Source

fn relu_derivative(&self) -> Self::Output

Implementations on Foreign Types§

Source§

impl<A, S, D> ReLUActivation for ArrayBase<S, D, A>
where A: Copy + PartialOrd + Zero + One, S: Data<Elem = A>, D: Dimension,

Source§

type Output = ArrayBase<OwnedRepr<A>, D>

Source§

fn relu(&self) -> Self::Output

Source§

fn relu_derivative(&self) -> Self::Output

Implementors§