Skip to content

Conversation

@dbort
Copy link
Contributor

@dbort dbort commented Aug 9, 2024

dbort added 4 commits August 8, 2024 17:34
Migrate these headers to the new `::executorch::runtime` namespace. Add temporary aliases from the old `::torch::executor` namespace so we can migrate users incrementally.

The tests for these headers are updated in the next diff to help demonstrate that the backwards-compatibility aliases work.

Differential Revision: [D60418073](https://our.internmc.facebook.com/intern/diff/D60418073/)

[ghstack-poisoned]
The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428953](https://our.internmc.facebook.com/intern/diff/D60428953/)

[ghstack-poisoned]
Migrate these headers to the new `::executorch::runtime` namespace. Add temporary aliases from the old `::torch::executor` namespace so we can migrate users incrementally.

The tests for these headers are updated in the next diff to help demonstrate that the backwards-compatibility aliases work.

Because `EValue` changed namespaces, I also needed to update print_evalue: the `operator<<()` for a type needs to live in its primary namespace. This shows that the aliases aren't perfect, but very few other users should be defining their own `operator<<` for our types. This is the only scenario where I've seen the namespace aliases break down.

Differential Revision: [D60428951](https://our.internmc.facebook.com/intern/diff/D60428951/)

[ghstack-poisoned]
The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 9, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4608

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 41f39f8 with merge base 5d151d0 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D60428952

dbort added 2 commits August 8, 2024 18:20
… new namespace"

The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D60428952

dbort added 2 commits August 8, 2024 19:00
… new namespace"

The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D60428952

dbort added 2 commits August 9, 2024 12:31
… new namespace"

The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D60428952

dbort added 2 commits August 14, 2024 16:52
… new namespace"

The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
The previous commit moved headers to the `::executorch::runtime` namespace. This diff updates the tests for those changes. After this, these tests should not use `::torch::executor` for the updated names.

Differential Revision: [D60428952](https://our.internmc.facebook.com/intern/diff/D60428952/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D60428952

@dbort dbort changed the base branch from gh/dbort/43/base to gh/dbort/42/head August 15, 2024 16:54
Base automatically changed from gh/dbort/42/head to main August 15, 2024 22:19
@facebook-github-bot facebook-github-bot merged commit f25f135 into main Aug 15, 2024
@kirklandsign kirklandsign deleted the gh/dbort/43/head branch August 15, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants