pytorch
b0a0850a - [DCP] Replaced `storage()` with `untyped_storage()` (#121538)

Commit
302 days ago
[DCP] Replaced `storage()` with `untyped_storage()` (#121538) Let us try to remove this warning 😄 : ``` [rank0]:/data/users/andgu/pytorch/torch/distributed/checkpoint/filesystem.py:150: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage() [rank0]: if tensor.storage().size() != tensor.numel(): ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/121538 Approved by: https://github.com/wz337, https://github.com/fegin
Author
Committer
Parents
Loading