This tutorial explains the subtleties of ``requires_grad``, ``retain_grad``, leaf, and non-leaf tensors using a simple example.