Vector Institute Interview Question

How does Pytorch compute gradients?