mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
53ca5ad347
commit
ee28b865ee
@ -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
|
||||
|
Reference in New Issue
Block a user