AI GLOSSARY
PyTorch Tensors and Autograd
Autograd connects the forward computation to the gradients needed for learning.
Simple explanation
PyTorch builds a computation graph from tensor operations. Calling backward on a scalar loss computes gradients for parameters that require them.
Technical explanation
PyTorch builds a computation graph from tensor operations. Calling backward on a scalar loss computes gradients for parameters that require them.
Example
Trace how Tensor ops becomes Gradients through autograd graph.