pub trait ActivateGradient<T>: Activate<T> {
type Input;
type Delta;
// Required method
fn activate_gradient(&self, input: Self::Input) -> Self::Delta;
}Expand description
The ActivateGradient trait extends the Activate trait to include a method for
computing the gradient of the activation function.
Required Associated Types§
Required Methods§
Sourcefn activate_gradient(&self, input: Self::Input) -> Self::Delta
fn activate_gradient(&self, input: Self::Input) -> Self::Delta
compute the gradient of some input