-
Couldn't load subscription status.
- Fork 700
Arm backend: Split executor runner into init + run #12162
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
Conversation
Refactor the main function of arm_executor_runner.cpp by extracting code that is related to initializing and running a model into two separate helper functions (runner_init and RunnerContext::run). A new struct called RunnerContext is introduced to store data/context required to run the model. Change-Id: Iaca06d6f12b84644ce76e23e8881787a7971cdaa
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12162
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 5 Cancelled Jobs, 1 Unrelated FailureAs of commit 9c58427 with merge base bed504e ( NEW FAILURE - The following job has failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
BROKEN TRUNK - The following job 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. |
|
@pytorchbot label ciflow/trunk |
|
@pytorchbot label "partner: arm" |
|
Fails are unrelated and fail on main also |
Reverts #12162 This fails internal CI. @digantdesai can you have a look
Refactor the main function of arm_executor_runner.cpp by extracting code that is related to initializing and running a model into two separate helper functions (runner_init and RunnerContext::run). A new struct called RunnerContext is introduced to store data/context required to run the model. ### Test plan The code is tested in the CI. It's a refactoring patch, so no new functionality added/removed. Co-authored-by: Martin Lindström <[email protected]>
|
What errors/problems did you see @metascroy ? |
|
|
||
| namespace { | ||
|
|
||
| /// Lightweight heapless container that constructs and stores a T in-place. |
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.
why not use std::optional? this appears roughly equivalent, but I read it quickly and might've missed something
…12197) The PR #12162 got reverted with #12171. This PR is a resubmission of the patch. Refactor the main function of arm_executor_runner.cpp by extracting code that is related to initializing and running a model into two separate helper functions (runner_init and RunnerContext::run). A new struct called RunnerContext is introduced to store data/context required to run the model. ### Test plan Arm's CI runs and tests the changed code. Co-authored-by: Martin Lindström <[email protected]>
Refactor the main function of arm_executor_runner.cpp by extracting code that is related to initializing and running a model into two separate helper functions (runner_init and RunnerContext::run). A new struct called RunnerContext is introduced to store data/context required to run the model. ### Test plan The code is tested in the CI. It's a refactoring patch, so no new functionality added/removed. Co-authored-by: Martin Lindström <[email protected]>
…12171) Reverts pytorch#12162 This fails internal CI. @digantdesai can you have a look
…ytorch#12197) The PR pytorch#12162 got reverted with pytorch#12171. This PR is a resubmission of the patch. Refactor the main function of arm_executor_runner.cpp by extracting code that is related to initializing and running a model into two separate helper functions (runner_init and RunnerContext::run). A new struct called RunnerContext is introduced to store data/context required to run the model. ### Test plan Arm's CI runs and tests the changed code. Co-authored-by: Martin Lindström <[email protected]>
Refactor the main function of arm_executor_runner.cpp by extracting code that is related to initializing and running a model into two separate helper functions (runner_init and RunnerContext::run). A new struct called RunnerContext is introduced to store data/context required to run the model.
Test plan
The code is tested in the CI. It's a refactoring patch, so no new functionality added/removed.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218