Add docs describing saved tensor hooks (#62362)
authorVictor Quach <quach@fb.com>
Fri, 20 Aug 2021 18:07:22 +0000 (11:07 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 20 Aug 2021 18:10:51 +0000 (11:10 -0700)
commitb95ce1591d56d545391ad5651f17ceb3b398a666
tree143973cedb502be5973965ad32a5ce91c7e0fab4
parent03cc46a0acadcba618402a5b366f1d02bc3e21af
Add docs describing saved tensor hooks (#62362)

Summary:
Add section to the Autograd mechanics docs to describe the recently
exposed saved tensors (https://github.com/pytorch/pytorch/issues/52451), how to register packing / unpacking
hooks (https://github.com/pytorch/pytorch/issues/60975) and how to use default hooks (https://github.com/pytorch/pytorch/issues/61834)

Sister PR: https://github.com/pytorch/pytorch/issues/62361 (will add a link from autograd.rst to notes/autograd in whatever PR does not land first)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62362

Reviewed By: soulitzer

Differential Revision: D30453177

Pulled By: Varal7

fbshipit-source-id: f5759977b069ff0ef36a47b08856d297691a6caa
docs/source/autograd.rst
docs/source/notes/autograd.rst