Autograd

Step 6 of 14 in Deep Learning · Build · Hard

An autograd engine records operations as they run and replays them backwards to compute gradients automatically. PyTorch's core is this idea.

Build it

  1. micrograd

    Value class with +, *, tanh, exp and backward() via topological sort; train a tiny MLP with it.

    Done when: Gradients match PyTorch; MLP fits a 4-point dataset.

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map