pytorch
6c242967 - [PyTorch] Devirtualize TensorImpl::has_storage (#51049)

Commit
3 years ago
[PyTorch] Devirtualize TensorImpl::has_storage (#51049) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51049 This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct. ghstack-source-id: 120714380 Test Plan: CI Reviewed By: ezyang Differential Revision: D26008498 fbshipit-source-id: b3f55f0b57b04636d13b09aa55bb720c6529542c
Author
Parents
Loading