Trait ReLU

Source
pub trait ReLU {
    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> ReLU for ArrayBase<S, D>
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§