ActivationOps

Trait ActivationOps 

Source
pub trait ActivationOps {
    // Required methods
    fn binary_step(&self) -> Self;
    fn sigmoid(&self) -> Self;
    fn tanh(&self) -> Self;
    fn relu(&self) -> Self;
    fn leaky_relu(&self) -> Self;
    fn parametric_relu(&self, a: f32) -> Self;
    fn elu(&self, alpha: f32) -> Self;
    fn softmax(&self, dim: usize) -> Self;
    fn swish(&self) -> Self;
}

Required Methods§

Source

fn binary_step(&self) -> Self

Source

fn sigmoid(&self) -> Self

Source

fn tanh(&self) -> Self

Source

fn relu(&self) -> Self

Source

fn leaky_relu(&self) -> Self

Source

fn parametric_relu(&self, a: f32) -> Self

Source

fn elu(&self, alpha: f32) -> Self

Source

fn softmax(&self, dim: usize) -> Self

Source

fn swish(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§