pub trait TensorExtension {
// Required methods
fn relu(&self) -> Self;
fn leaky_relu(&self, slope: f64) -> Self;
}
Required Methods§
fn relu(&self) -> Self
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.