concept backpropagation logic in category deep learning

appears as: backpropagation logic, backpropagation logic
Grokking Deep Learning

This is an excerpt from Manning's book Grokking Deep Learning.

Notice that addition isn’t handled anywhere else in the class. The generic backpropagation logic is abstracted away so everything necessary for addition is defined in these two places. Note further that backpropagation logic calls .backward() two times, once for each variable that participated in the addition. Thus, the default setting in the backpropagation logic is to always backpropagate into every variable in the graph. But occasionally, backpropagation is skipped if the variable has autograd turned off (self.autograd == False). This check is performed in the .backward() method: