On the left is the computation graph as draw_dot renders it; on the right is the code currently executing. Walk it once: build the graph → topological sort → ten calls to _backward().
—
Use ← → to step through. Green = building the graph, purple = topological sort, orange = the backward pass, red = the moment a gradient is written.