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.
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.
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.
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.
There was a problem hiding this comment.
I agree. Allowing it to pass via Method or Module hints that it is private to a method which in fact it isn't.
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 |
Pull Request resolved: pytorch/executorch#11463 Expose the update API in method. This API will take BackendOptionMap as input and call backend_interface->update under the hood. ghstack-source-id: 290372282 @exported-using-ghexport Differential Revision: [D76149467](https://our.internmc.facebook.com/intern/diff/D76149467/)
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Hi @cccclai! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
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