Uh oh!
There was an error while loading. Please reload this page.
Add in_progress() state check to Method::execute() - #16531
Conversation
Adds in_progress() to detect when execution is mid-way through the instruction sequence. Method::execute() now returns InvalidState if called while in_progress() is true. execute() auto-resets step_state_ on error to allow retry attempts. step() does not auto-reset (requires manual reset_execution() call). Tests verify initial state, mid-execution detection, error recovery, and interaction between execute() and step() APIs.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/16531
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit 23140be with merge base 7fa1aaa ( NEW FAILURE - The following job has failed:UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a |
rascani
commented
Jan 13, 2026
CI failures are unrelated. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Adds in_progress() to detect when execution is mid-way through the instruction sequence. Method::execute() now returns InvalidState if called while in_progress() is true.
execute() auto-resets step_state_ on error to allow retry attempts. step() does not auto-reset (requires manual reset_execution() call).
Test plan