Your loss L is a function of y (target) and y_hat(output). The first step in backpropagation is dL/dy_hat (gradient of the loss with respect to the output) and that’s what you are reading in the tutorial.