ActivatorGradient

Trait ActivatorGradient 

Source
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§

Source

fn activate_gradient(&self, input: T) -> Self::Delta

compute the gradient of some input

Implementors§