-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type #21923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
gchanan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer making the namespace scarier, but otherwise looks good.
|
|
||
| namespace at { | ||
|
|
||
| inline Tensor unsafeTensorFromTH(void * th_pointer, bool retain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can just put this in at::internal or at::detail or something? I don't think anyone besides us should be calling this.
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
Summary: Pull Request resolved: pytorch/pytorch#21923 ghimport-source-id: f015c8521ef9071eaa982cbf73c13aa925035956 Test Plan: Imported from OSS Differential Revision: D15883390 Pulled By: li-roy fbshipit-source-id: 6a7a7ffbe6000199d41cdca5efb97371f46dd8fe
Summary: Pull Request resolved: pytorch#21923 ghimport-source-id: f015c85 Test Plan: Imported from OSS Differential Revision: D15883390 Pulled By: li-roy fbshipit-source-id: 6a7a7ffbe6000199d41cdca5efb97371f46dd8fe
Stack from ghstack:
In preparation to delete Type.
Differential Revision: D15883390