Overview of Autograd capabilities
masterAutograd automatically differentiates native Python and Numpy code. It supports:
- Complex Python logic: Loops,
ifstatements, recursion, and closures. - Higher-order derivatives: Taking derivatives of derivatives (e.g., second, third, or fourth-order derivatives).
- Differentiation modes: Supports both reverse-mode (backpropagation) for efficient gradients of scalar-valued functions with respect to array arguments, and forward-mode differentiation. These modes can be composed arbitrarily.
- Primary use case: Gradient-based optimization.