Move Backend, Layout, ATenGeneral, Deprecated, Generator to ATen/core.#10740
Move Backend, Layout, ATenGeneral, Deprecated, Generator to ATen/core.#10740gchanan wants to merge 4 commits intopytorch:masterfrom
Conversation
I included "legacy" includes in the old spots for Backend, Generator, Layout; it seemed unlikely that the other ones had direct user includes. This is another step on the path to move Type/Tensor to ATen/core.
facebook-github-bot
left a comment
There was a problem hiding this comment.
gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
| constexpr DeviceType kCPU = DeviceType::CPU; | ||
| constexpr DeviceType kCUDA = DeviceType::CUDA; | ||
|
|
||
| static inline const char* toString(Backend b) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
facebook-github-bot
left a comment
There was a problem hiding this comment.
gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
left a comment
There was a problem hiding this comment.
gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
left a comment
There was a problem hiding this comment.
gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
|
||
| namespace at { | ||
|
|
||
| struct AT_API Generator { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| #include <iostream> | ||
|
|
||
| namespace at { | ||
| enum class Layout { Strided, Sparse }; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
facebook-github-bot
left a comment
There was a problem hiding this comment.
gchanan is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
left a comment
There was a problem hiding this comment.
gchanan is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
pytorch#10740) Summary: I included "legacy" includes in the old spots for Backend, Generator, Layout; it seemed unlikely that the other ones had direct user includes. This is another step on the path to move Type/Tensor to ATen/core. Pull Request resolved: pytorch#10740 Reviewed By: ezyang Differential Revision: D9435888 Pulled By: ezyang fbshipit-source-id: efe0034e6145834fa5c2d58cbff669e9d20fbe7c
…. (#10740) Summary: I included "legacy" includes in the old spots for Backend, Generator, Layout; it seemed unlikely that the other ones had direct user includes. This is another step on the path to move Type/Tensor to ATen/core. Pull Request resolved: pytorch/pytorch#10740 Reviewed By: ezyang Differential Revision: D9435888 Pulled By: gchanan fbshipit-source-id: 89f4f0f445d4498a059d3a79069ba641b22bbcac
pytorch#10740) Summary: I included "legacy" includes in the old spots for Backend, Generator, Layout; it seemed unlikely that the other ones had direct user includes. This is another step on the path to move Type/Tensor to ATen/core. Pull Request resolved: pytorch#10740 Reviewed By: ezyang Differential Revision: D9435888 Pulled By: gchanan fbshipit-source-id: 89f4f0f445d4498a059d3a79069ba641b22bbcac
I included "legacy" includes in the old spots for Backend, Generator, Layout; it seemed unlikely that the other ones had direct user includes.
This is another step on the path to move Type/Tensor to ATen/core.