Backpropagation by Hand: Two Layers, a Pen, and Then Autograd Agrees
A developer manually computed gradients for a two-layer neural network with ReLU activation and squared-error loss, deriving ∂L/∂w1=30, ∂L/∂b1=30, ∂L/∂w2=20, and ∂L/∂b2=10, then verified that PyTorch's autograd produces …