Trait TensorExtension

Source
pub trait TensorExtension {
    // Required methods
    fn relu(&self) -> Self;
    fn leaky_relu(&self, slope: f64) -> Self;
}

Required Methods§

Source

fn relu(&self) -> Self

Source

fn leaky_relu(&self, slope: f64) -> 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.

Implementations on Foreign Types§

Source§

impl TensorExtension for Tensor

Source§

fn relu(&self) -> Self

Source§

fn leaky_relu(&self, slope: f64) -> Self

Implementors§