Skip to content

Conversation

@dbort
Copy link
Contributor

@dbort dbort commented Sep 18, 2024

The code under examples/... is a proxy for user code, and users should never declare code under the torch:: or executorch:: namespaces.

Move this code under the example:: namespace to make it more clear that users should use their own namespaces when writing code like this.

Test Plan:

@dbort dbort requested a review from cccclai September 18, 2024 22:47
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 18, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 85190a1 with merge base af098c3 (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 Sep 18, 2024
@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cccclai
Copy link
Contributor

cccclai commented Sep 19, 2024

@neuropilot-captain could you help confirm it's still working? We don't have ci have mediatek backend yet and will need some manual verification

@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@neuropilot-captain
Copy link
Collaborator

Looks good! Built successfully

@facebook-github-bot
Copy link
Contributor

@dbort merged this pull request in 182f138.

@dbort
Copy link
Contributor Author

dbort commented Sep 23, 2024

@pytorchbot cherry-pick --onto release/0.4 -c fixnewfeature

@dbort dbort deleted the examples-mediatek branch September 23, 2024 21:25
pytorchbot pushed a commit that referenced this pull request Sep 23, 2024
Summary:
The code under examples/... is a proxy for user code, and users should never declare code under the `torch::` or `executorch::` namespaces.

Move this code under the `example::` namespace to make it more clear that users should use their own namespaces when writing code like this.

Pull Request resolved: #5478

Test Plan: - Built using the instructions at https://github.com/pytorch/executorch/blob/main/examples/mediatek/README.md

Reviewed By: JacobSzwejbka, cccclai

Differential Revision: D62992974

Pulled By: dbort

fbshipit-source-id: b01f1b33d2853a0555ae19d79769a5bb6d0ba853
(cherry picked from commit 182f138)
@pytorchbot
Copy link
Collaborator

Cherry picking #5478

The cherry pick PR is at #5556 and it is recommended to link a fixnewfeature cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

jackzhxng pushed a commit that referenced this pull request Sep 24, 2024
Move examples/mediatek out from under the torch namespace (#5478)

Summary:
The code under examples/... is a proxy for user code, and users should never declare code under the `torch::` or `executorch::` namespaces.

Move this code under the `example::` namespace to make it more clear that users should use their own namespaces when writing code like this.

Pull Request resolved: #5478

Test Plan: - Built using the instructions at https://github.com/pytorch/executorch/blob/main/examples/mediatek/README.md

Reviewed By: JacobSzwejbka, cccclai

Differential Revision: D62992974

Pulled By: dbort

fbshipit-source-id: b01f1b33d2853a0555ae19d79769a5bb6d0ba853
(cherry picked from commit 182f138)

Co-authored-by: Dave Bort <[email protected]>
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. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants