Autograd: Scalar Reverse-Mode Checkpoint

Apply the module contracts to concrete traces and diagnose failures.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. At x=3, u=x*x and L=u+u. What derivative should backward produce for x?

Select one answer.

2. Why can _prev contain x once for x*x while the multiplication closure must still add twice?

Select one answer.

3. After backward on a graph, you clear only parameter gradients and call backward on the same loss again. What is the problem in this minimal engine?

Select one answer.

4. A finite-difference test for f(x)=x*x+x near x=3 gives 7, but autograd gives 6. Which path is likely missing?

Select one answer.

Join Discord