Skip to content

Conversation

@li-roy
Copy link
Contributor

@li-roy li-roy commented Jun 18, 2019

Stack from ghstack:

In preparation to delete Type.

Differential Revision: D15883390

@pytorchbot pytorchbot added module: autograd Related to torch.autograd, and the autograd engine in general module: internals Related to internal abstractions in c10 and ATen labels Jun 18, 2019
Move UnsafeTensorFromTH and UnsafeStorageFromTH off Type

gh-metadata: pytorch pytorch 21923 gh/li-roy/28/head
royboy added 2 commits June 19, 2019 10:46
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
@li-roy li-roy requested review from dzhulgakov, ezyang, gchanan and smessmer and removed request for ezyang June 19, 2019 19:20
Copy link
Contributor

@gchanan gchanan left a 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) {
Copy link
Contributor

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.

royboy added 3 commits June 19, 2019 22:08
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
royboy added 3 commits June 20, 2019 14:05
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
@zou3519 zou3519 deleted the gh/li-roy/28/head branch June 21, 2019 08:08
zdevito pushed a commit to zdevito/ATen that referenced this pull request Jun 21, 2019
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
@facebook-github-bot
Copy link
Contributor

@li-roy merged this pull request in b36a041.

iotamudelta pushed a commit to ROCm/pytorch that referenced this pull request Jun 21, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: autograd Related to torch.autograd, and the autograd engine in general module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants