Computation Graphs

Learn about computation graphs: what they are and how we code them using PyTorch?

That automatic gradient calculation in the last section seems magical, but of course, it isn’t.

It is worth understanding just a little bit about how the automatic gradient calculation is done because this knowledge will help us later when we build larger networks.

Simple computation graph

Take a look at the following very simple network. It’s not a neural network, just a sequence of calculations.

Get hands-on with 1400+ tech skills courses.