-
Notifications
You must be signed in to change notification settings - Fork 602
[2/N] Add option context #11390
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
base: gh/cccclai/22/base
Are you sure you want to change the base?
[2/N] Add option context #11390
Conversation
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]
🔗 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. ❌ 2 New Failures, 2 Unrelated FailuresAs of commit a0beade with merge base 608a745 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D75919212 |
This PR needs a
|
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]
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]
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]
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]
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]
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]
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]
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]
This pull request was exported from Phabricator. Differential Revision: D75919212 |
There was a problem hiding this comment.
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..
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: |
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]
This pull request was exported from Phabricator. Differential Revision: D75919212 |
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