PyTorch .backward() is just a graph traversal in disguise
PyTorch's .backward() method performs a graph traversal that applies the chain rule node-by-node rather than deriving a global formula, according to a technical explainer. The article uses the example z = 2x^2 + 1 with x…