pytorch
55e3d7a4 - update tensor impl support_as_strided for nested tensors (#79616)

Commit
2 years ago
update tensor impl support_as_strided for nested tensors (#79616) This is needed for supporting nested tensors with autograd. See this discussion: https://github.com/pytorch/pytorch/pull/79446#discussion_r896334299 I was deciding between 3 options: 1. The proposed change- update impl base 2. Override function without making the base class method virtual 3. Make support_as_strided() virtual on base and override on nested The comment above in impl made me think that option 1 is okay but feel free to correct me Pull Request resolved: https://github.com/pytorch/pytorch/pull/79616 Approved by: https://github.com/albanD, https://github.com/soulitzer
Author
Committer
Parents
Loading