Deprecate TypedStorage, its derived classes, and all of their public methods (#85303)

Part of #85302

Pull Request resolved: https://github.com/pytorch/pytorch/pull/85303
Approved by: https://github.com/ezyang
This commit is contained in:
Kurt Mohler
2022-11-08 18:11:01 +00:00
committed by PyTorch MergeBot
parent 53ca5ad347
commit ee28b865ee
37 changed files with 631 additions and 176 deletions

View File

@ -102,7 +102,7 @@ class TestViewOps(TestCase):
# Note: only validates storage on native device types
# because some accelerators, like XLA, do not expose storage
if base.device.type == 'cpu' or base.device.type == 'cuda':
if base.storage().data_ptr() != other.storage().data_ptr():
if base._storage().data_ptr() != other._storage().data_ptr():
return False
return True