Expand description
Reverse-mode automatic differentiation (backpropagation)
Reverse-mode AD is efficient for computing derivatives when the number of output variables is small (typically 1 for optimization). It builds a computational graph and then propagates derivatives backwards.
Structs§
- Computation
Graph - Computational graph for reverse-mode AD
- ReverseAD
Options - Options for reverse-mode automatic differentiation
- Reverse
Variable - Variable in the computational graph for reverse-mode AD
Functions§
- abs
- Absolute value operation on computation graph
- add
- Addition operation on computation graph
- cos
- Cosine operation on computation graph
- div
- Division operation on computation graph
- exp
- Exponential operation on computation graph
- is_
reverse_ mode_ efficient - Check if reverse mode is preferred for the given problem dimensions
- leaky_
relu - Leaky ReLU operation on computation graph
- ln
- Natural logarithm operation on computation graph
- mul
- Multiplication operation on computation graph
- powi
- Power operation (x^n) on computation graph
- relu
- ReLU (Rectified Linear Unit) operation on computation graph
- reverse_
gauss_ newton_ hessian - Gauss-Newton Hessian approximation using reverse-mode AD
- reverse_
gauss_ newton_ hessian_ ad - Gauss-Newton Hessian approximation using reverse-mode AD for AD-compatible functions
- reverse_
gradient - Compute gradient using reverse-mode automatic differentiation This is a generic function that works with closures, using finite differences For functions that can be expressed in terms of AD operations, use reverse_gradient_with_tape
- reverse_
gradient_ ad - Compute gradient using reverse-mode AD with a function that directly uses AD operations
- reverse_
gradient_ with_ tape - Simple reverse-mode gradient computation using a basic tape
- reverse_
hessian - Compute Hessian using reverse-mode automatic differentiation (finite differences for generic functions)
- reverse_
hessian_ ad - Compute Hessian using forward-over-reverse mode for AD functions
- reverse_
vjp - Vector-Jacobian product using reverse-mode AD
- reverse_
vjp_ ad - Vector-Jacobian product using reverse-mode AD for AD-compatible functions
- sigmoid
- Sigmoid operation on computation graph
- sin
- Sine operation on computation graph
- sqrt
- Square root operation on computation graph
- sub
- Subtraction operation on computation graph
- tan
- Tangent operation on computation graph
- tanh
- Hyperbolic tangent operation on computation graph