pub trait ActivatorGradient<T>: Activator<T> {
type Input;
type Delta;
// Required method
fn activate_gradient(&self, input: Self::Input) -> Self::Delta;
}Expand description
The ActivatorGradient trait extends the Activator 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