Skip to content

[executorch] Add propagate_input_spec pass and while_loop HOP support#18144

Draft
GregoryComer wants to merge 1 commit intogh/GregoryComer/175/basefrom
gh/GregoryComer/175/head
Draft

[executorch] Add propagate_input_spec pass and while_loop HOP support#18144
GregoryComer wants to merge 1 commit intogh/GregoryComer/175/basefrom
gh/GregoryComer/175/head

Conversation

@GregoryComer
Copy link
Member

@GregoryComer GregoryComer commented Mar 13, 2026

Stack from ghstack (oldest at bottom):

Add a new pass named propagate_input_spec, which recursively assigns meta["input_spec"] on placeholder nodes, including in nested control flow submodules. Placeholders that don't correspond to a top-level input are not assigned this meta key. Also, add while_loop to get_control_flow_submodules.

Differential Revision: D95876986

Add a new pass named `propagate_input_spec`, which recursively assigns meta["input_spec"] on placeholder nodes, including in nested control flow submodules. Placeholders that don't correspond to a top-level input are not assigned this meta key. Also, add `while_loop` to `get_control_flow_submodules`.

Differential Revision: [D95876986](https://our.internmc.facebook.com/intern/diff/D95876986/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 13, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18144

Note: Links to docs will display an error until the docs builds have been completed.

❌ 11 New Failures, 1 Pending, 1 Unrelated Failure

As of commit bfadd0c with merge base 48bd687 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@GregoryComer GregoryComer marked this pull request as draft March 13, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant