3. Runtime, Autograd, and Interop
Training introduces state and hardware. Parameters change, tape nodes save intermediate values, and optimizer buffers accumulate history. None of that appears in the clean equation
f_\theta(x)=W_2\,\operatorname{ReLU}(W_1x+b_1)+b_2.
We will follow one step through the runtime, then move the same operation to compiled execution, CUDA, and LibTorch.