Add nested tensor support to autograd (#79446)
The issue that is tracking this work is: #79447
This is one in a series of PRs to add autograd support for nested tensors.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79446
Approved by: https://github.com/soulitzer