Skip to content

[2/N] Add option context - #11390

Merged
facebook-github-bot merged 17 commits into
gh/cccclai/22/basefrom
gh/cccclai/22/head
Jun 24, 2025
Merged

[2/N] Add option context#11390
facebook-github-bot merged 17 commits into
gh/cccclai/22/basefrom
gh/cccclai/22/head

Conversation

@cccclai

@cccclaicccclai commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

For future needs without breacking API BC, in case we need to pass more information to the update API

Differential Revision: D75919212

Differential Revision: D75919212

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
[ghstack-poisoned]
@pytorch-bot

pytorch-botBot commented Jun 5, 2025

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit ea9679d with merge base 222d9e3 (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-botfacebook-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 Jun 5, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@cccclaicccclai changed the title [2/N] Add update context[2/N] Add option contextJun 18, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@kimishpatelkimishpatel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure on the use of this. I understand you said this is introduced for BC, but can you elaborate on the BC aspect of it? Is it to avoid makign changes to client call sites? If this struct is populated then I imagine it will require client callsites to change anyway, if they want to make use of it. So maybe a bit more on this in the summary would be good.

If you do want to keep it then maybe get_option and set_option should provide both overloads? One with backendoptioncontext and one without..

@cccclai

Copy link
Copy Markdown
ContributorAuthor

I am not sure on the use of this. I understand you said this is introduced for BC, but can you elaborate on the BC aspect of it? Is it to avoid makign changes to client call sites? If this struct is populated then I imagine it will require client callsites to change anyway, if they want to make use of it. So maybe a bit more on this in the summary would be good.

If you do want to keep it then maybe get_option and set_option should provide both overloads? One with backendoptioncontext and one without..

Yeah to avoid making change to client call sites. I was thinking it's for pupulating runtime info from ET to the backend during set option. We can take a look at how init context helps on passing new info from ET to backend without causing BC.

Like when we pass event tracer: 0c4053e

And the named data map:
492366a

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
For future needs without breacking API BC, in case we need to pass more information to the update API
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212)
[ghstack-poisoned]
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
facebook-github-bot merged commit 8c02043 into gh/cccclai/22/baseJun 24, 2025
@facebook-github-bot
facebook-github-bot deleted the gh/cccclai/22/head branch June 24, 2025 07:59
@pytorchbotpytorchbot mentioned this pull request Jun 24, 2025
cccclai added a commit that referenced this pull request Jun 24, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #11390 by
@cccclai
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/cccclai/22/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/cccclai/22/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/cccclai/21/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/cccclai/22/orig
@diff-train-skip-merge
---------
Co-authored-by: Chen Lai <chenlai@fb.com>
Co-authored-by: cccclai <chenlai@meta.com>
@cccclaicccclai added the release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) label Jun 24, 2025
kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#11390
For future needs without breacking API BC, in case we need to pass more information to the update API
ghstack-source-id: 290059229
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#11390
For future needs without breacking API BC, in case we need to pass more information to the update API
ghstack-source-id: 290059229
Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/)
hinriksnaer pushed a commit to hinriksnaer/executorch that referenced this pull request Jun 26, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: pytorch#11390 by
@cccclai
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/cccclai/22/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/cccclai/22/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/cccclai/21/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/cccclai/22/orig
@diff-train-skip-merge
---------
Co-authored-by: Chen Lai <chenlai@fb.com>
Co-authored-by: cccclai <chenlai@meta.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedrelease notes: apiChanges to public facing apis (any interfaces, pybinded runtime methods, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@cccclai@facebook-github-bot@kimishpatel