-
Notifications
You must be signed in to change notification settings - Fork 689
Move etensor types to their new namespace #5569
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5569
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ You can merge normally! (1 Unrelated Failure)As of commit bda0a3c with merge base 905b88c ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D63294217 |
This pull request was exported from Phabricator. Differential Revision: D63294217 |
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Differential Revision: D63294217
3ce4d05
to
9901435
Compare
This pull request was exported from Phabricator. Differential Revision: D63294217 |
9901435
to
c67c41f
Compare
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Differential Revision: D63294217
c67c41f
to
2387159
Compare
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217
This pull request was exported from Phabricator. Differential Revision: D63294217 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D63294217 |
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217
2387159
to
7a391d8
Compare
This pull request was exported from Phabricator. Differential Revision: D63294217 |
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217
7a391d8
to
39c0e1c
Compare
Summary: Pull Request resolved: pytorch#5709 I'm not sure how this worked before, but these sites called functions under torch::executor without actually qualifying them. Qualify them explicitly, because the "can call without qualification" magic stops working when we move the etensor types in D63294217. In a few places I used `namespace etrt = executorch::runtime;` instead of a using statement for a particular function, like `etrt::isIntegralType`. If I just say `using executorch::runtime::isIntegralType`, those files fail in aten mode because the unqualified call to `isIntegralType()` is deemed ambiguous in the presence of `c10::isIntegralType()` -- but afaict that `c10` version isn't `using`'d into the global namespace, so I don't know why it conflicts. It'd be good to figure that out at some point, but this works for now. I also updated custom_kernel_example to stop using the `torch::` namespace. Differential Revision: D63476419 Reviewed By: swolchok
This pull request was exported from Phabricator. Differential Revision: D63294217 |
39c0e1c
to
8a3a014
Compare
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217
Summary: Pull Request resolved: pytorch#5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217
8a3a014
to
bda0a3c
Compare
This pull request was exported from Phabricator. Differential Revision: D63294217 |
This pull request has been merged in 6ff52cc. |
@pytorchbot cherry-pick --onto release/0.4 -c fixnewfeature |
Summary: Pull Request resolved: #5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217 fbshipit-source-id: 5241fd5a0b487631b6460222b6c3e27e82aea5f0 (cherry picked from commit 6ff52cc)
Cherry picking #5569The cherry pick PR is at #5773 and it is recommended to link a fixnewfeature cherry pick PR with an issue. The following tracker issues are updated: Details for Dev Infra teamRaised by workflow job |
Summary: Pull Request resolved: #5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217 fbshipit-source-id: 5241fd5a0b487631b6460222b6c3e27e82aea5f0 (cherry picked from commit 6ff52cc)
Move etensor types to their new namespace (#5569) Summary: Pull Request resolved: #5569 Move these types out of the old `torch::executor` namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location in `torch::executor`. Most users should not use these directly, instead using the `executorch::aten` aliases. These ETensor types live under `executorch::runtime...` to make it a little more clear that they're semi-internal. Also: - Hide bfloat16's `bits_from_f32`, which was only used by tests - Hide the `min` implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code in `torch::executor`. - Remove an unnecessary forward declaration from BlasKernel.h which conflicted with the new namespace Reviewed By: swolchok Differential Revision: D63294217 fbshipit-source-id: 5241fd5a0b487631b6460222b6c3e27e82aea5f0 (cherry picked from commit 6ff52cc) Co-authored-by: Dave Bort <[email protected]>
Summary:
Move these types out of the old
torch::executor
namespace. Put them in their own namespace so that no-one will see them by default, unlike their old location intorch::executor
.Most users should not use these directly, instead using the
executorch::aten
aliases. These ETensor types live underexecutorch::runtime...
to make it a little more clear that they're semi-internal.Also:
bits_from_f32
, which was only used by testsmin
implementation used by string_view. Although it was in an anonymous namespace, it was in a header, so it was visible to all code intorch::executor
.Differential Revision: D63294217