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