Trait reverse::Gradient[][src]

pub trait Gradient<T, S> {
    fn wrt(&self, v: T) -> S;
}
Expand description

Calculate gradients with respect to particular variables.

Required methods

Calculate the gradient with respect to variable(s) v.

Implementations on Foreign Types

Calculate the gradient with respect to variable v.

Calculate the gradient with respect to all variables in v. Returns a vector, where the items in the vector are the gradients with respect to the variable in the original list v, in the same order.

Calculate the gradient with respect to all variables in v. Returns a vector, where the items in the vector are the gradients with respect to the variable in the original list v, in the same order.

Calculate the gradient with respect to all variables in v. Returns a vector, where the items in the vector are the gradients with respect to the variable in the original list v, in the same order.

Calculate the gradient with respect to all variables in v. Returns a vector, where the items in the vector are the gradients with respect to the variable in the original list v, in the same order.

Implementors