Adding compile option warmup_execute_after_compile to optionally run execute rigtht after compilation to create command buffers.#15962
Merged
meta-codesync[bot] merged 1 commit intopytorch:mainfrom Nov 25, 2025
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15962
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 114 PendingAs of commit 8ed7b28 with merge base a7d7db9 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
|
@trivedivivek has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87781471. |
trviv
added a commit
to trviv/executorch
that referenced
this pull request
Nov 24, 2025
…execute rigtht after compilation to create command buffers. (pytorch#15962) Summary: This diff introduces a new compile option, `warmup_execute_after_compile`, which allows the graph to be executed once immediately after it is compiled. This option is disabled by default and can be enabled by setting the `warmup_execute_after_compile` flag to `true` in the `GraphConfig` object. When enabled, the `optional_warmup_execute` method makes a dummy call to `execute` function after the graph is prepacked. Differential Revision: D87781471
5d9e91a to
e8c305c
Compare
Contributor
|
@trivedivivek has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87781471. |
yipjustin
approved these changes
Nov 24, 2025
…execute rigtht after compilation to create command buffers. (pytorch#15962) Summary: This diff introduces a new compile option, `warmup_execute_after_compile`, which allows the graph to be executed once immediately after it is compiled. This option is disabled by default and can be enabled by setting the `warmup_execute_after_compile` flag to `true` in the `GraphConfig` object. When enabled, the `optional_warmup_execute` method makes a dummy call to `execute` function after the graph is prepacked. Reviewed By: yipjustin Differential Revision: D87781471
e8c305c to
8ed7b28
Compare
jirioc
pushed a commit
to nxp-upstream/executorch
that referenced
this pull request
Dec 19, 2025
…execute rigtht after compilation to create command buffers. Differential Revision: D87781471 Pull Request resolved: pytorch#15962
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: This diff introduces a new compile option,
warmup_execute_after_compile, which allows the graph to be executed once immediately after it is compiled. This option is disabled by default and can be enabled by setting thewarmup_execute_after_compileflag totruein theGraphConfigobject. When enabled, theoptional_warmup_executemethod makes a dummy call toexecutefunction after the graph is prepacked.Differential Revision: D87781471