[PyTorch Deprecation] Tensor.storage()
has been deprecated
#5104
Labels
Milestone
Tensor.storage()
has been deprecated
#5104
Description
Tensor.storage()
has been deprecated in PyTorch master and this change would be shipped with PyT 2.0. We may need to update the code callingTensor.storage()
in DGL, because it will raise a warning and finally cause an error.Note that
Tensor._storage()
has been renamed toTensor.untyped_storage()
in pytorch/pytorch#91414, which makes it difficult to use a consistent API among PyTorch versions DGL's supporting.To Do
zerocopy_to_dgl_ndarray_for_write
fixed by [Fix] Fixtensor.storage()
deprecation warning #5656.InvertibleCheckpoint
The text was updated successfully, but these errors were encountered: