pub trait Activator<T> {
type Output;
// Required method
fn activate(&self, input: T) -> Self::Output;
}Expand description
The Activator trait defines a method for applying an activation function to an input
tensor.
pub trait Activator<T> {
type Output;
// Required method
fn activate(&self, input: T) -> Self::Output;
}The Activator trait defines a method for applying an activation function to an input
tensor.