pub trait ActivatorGradient<T> {
type Rel: Activator<T>;
type Delta;
// Required method
fn activate_gradient(&self, input: T) -> 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: T) -> Self::Delta
fn activate_gradient(&self, input: T) -> Self::Delta
compute the gradient of some input
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".