The same tanh, this time assembled from six primitives: *, exp, +, **-1. Not one derivative has to be worked out by hand — watch the engine chain it together itself.
—
_backward calls each write to e.grad in turn, and += accumulates them automatically. With =, one of them is lost.Use ← → to step through. Green = forward, orange = backward, red = e’s two paths and the moment they accumulate.