Skip to content

Conversation

@Erik-Lundell
Copy link
Collaborator

@Erik-Lundell Erik-Lundell commented Nov 10, 2025

Adding while to get_control_flow_submodules seems risky, could have unintended side effects.

The new function is similar to get_control_flow_submodules though, so refactor that to share logic.

cc @JacobSzwejbka @angelayi @freddan80 @per @zingo @oscarandersson8218 @digantdesai

Adding while to get_control_flow_submodules seems risky, could
have unintended side effects.

The new function is similar to get_control_flow_submodules though,
so refactor that to share logic.

Signed-off-by: Erik Lundell <[email protected]>
Change-Id: Ia2b1b477f510eecb3b38b864546218528a8d3d8e
@Erik-Lundell Erik-Lundell added module: exir Issues related to Export IR and the code under exir/ partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm labels Nov 10, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 10, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (4 Unrelated Failures)

As of commit c5a7380 with merge base c8e9684 (image):

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.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 10, 2025
@Erik-Lundell Erik-Lundell added the release notes: none Do not include this in the release notes label Nov 10, 2025
@JacobSzwejbka
Copy link
Contributor

What is the context for the change?

@Erik-Lundell
Copy link
Collaborator Author

What is the context for the change?

Our backend is planning to support cond and while, which means that there will be many places where we want to access all submodules coming from such ops. See for example #15381 and #15364 that prepare for cond support, but I want to change get_control_flow_submodules -> get_cond_while_submodules when adding while support.

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. module: exir Issues related to Export IR and the code under exir/ partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants