Autograd Internals

Autograd implements reverse-mode differentiation for tensor computations.

Concept

Internal flow

Forward pass
   ├─ operations create nodes
   └─ tape stores references
Backward pass
   └─ gradients propagate through nodes

Memory behavior

When to use

When not to use