Only 1 TensorImpl allocation in differentiable views. (#48896)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48896
Test Plan: Imported from OSS
Reviewed By: pbelevich
Differential Revision: D25380895
Pulled By: ailzhang
fbshipit-source-id: 4d565e6312e860a2ff185a3f8b552005ddd29695