mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
eb7b39e02f
Summary: This PR templatizes `Tensor.data_ptr()`, to prepare for the deprecation of `Tensor.data<T>()` and introduction of `Tensor.data()` that has the same semantics as `Variable.data()`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/24847 Differential Revision: D16906061 Pulled By: yf225 fbshipit-source-id: 8f9db9fd105b146598a9d759aa4b4332011da8ea