Why is autograd so complicated

03/06/2021 15 min Episodio 22
Why is autograd so complicated

Listen "Why is autograd so complicated"

Episode Synopsis

Why is autograd so complicated? What are the constraints and features that go into making it complicated? What's up with it being written in C++? What's with derivatives.yaml and code generation? What's going on with views and mutation? What's up with hooks and anomaly mode? What's reentrant execution? Why is it relevant to checkpointing? What's the distributed autograd engine?Further reading.Autograd notes in the docs https://pytorch.org/docs/stable/notes/autograd.htmlderivatives.yaml https://github.com/pytorch/pytorch/blob/master/tools/autograd/derivatives.yamlPaper on autograd engine in PyTorch https://openreview.net/pdf/25b8eee6c373d48b84e5e9c6e10e7cbbbce4ac73.pdf