AI GLOSSARY
The PyTorch Training Loop
A training loop is a repeatable feedback cycle, not a single model call.
Simple explanation
A training step computes predictions, calculates loss, backpropagates gradients, and updates parameters. Gradients are cleared before the next update.
Technical explanation
A training step computes predictions, calculates loss, backpropagates gradients, and updates parameters. Gradients are cleared before the next update.
Example
Trace how Batch becomes Updated weights through forward + backward.