-
Notifications
You must be signed in to change notification settings - Fork 594
[5/N] Add update in method #11463
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/25/base
Are you sure you want to change the base?
[5/N] Add update in method #11463
Conversation
Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood. Differential Revision: [D76149467](https://our.internmc.facebook.com/intern/diff/D76149467/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11463
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Cancelled Job, 2 Unrelated FailuresAs of commit a26ada5 with merge base f7cc72f ( CANCELLED JOB - The following job was cancelled. Please retry:
BROKEN TRUNK - The following jobs 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. |
Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood. Differential Revision: [D76149467](https://our.internmc.facebook.com/intern/diff/D76149467/) ghstack-source-id: 288753956 Pull Request resolved: #11463
This PR needs a
|
This pull request was exported from Phabricator. Differential Revision: D76149467 |
Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood. Differential Revision: [D76149467](https://our.internmc.facebook.com/intern/diff/D76149467/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76149467 |
Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood. Differential Revision: [D76149467](https://our.internmc.facebook.com/intern/diff/D76149467/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76149467 |
void load_program() { | ||
// Since these tests cause ET_LOG to be called, the PAL must be initialized | ||
// first. | ||
executorch::runtime::runtime_init(); |
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.
This already happens in Setup too
const char* backend_name = entry.backend_name; | ||
auto backend_options = entry.options; | ||
|
||
auto backend_class = get_backend_class(backend_name); |
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.
does backend class give you a singleton instance of backend interface? If so why do we need to pipe it up via Method class. Just make something like executorch::backend::set_options(BackendOptions&)
(I dont think BackendOptions constructor exist? but probably would be good to add)
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.
No it doesn't. I did only for the test backend I added, just so I can check if the config inside the backend is indeed changed in the test.
Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood. Differential Revision: [D76149467](https://our.internmc.facebook.com/intern/diff/D76149467/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76149467 |
Stack from ghstack (oldest at bottom):
Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood.
Differential Revision: D76149467