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 <erik.lundell@arm.com>
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.

❌ 2 New Failures, 7 Pending

As of commit 70551d4 with merge base 0601b7f (image):

NEW FAILURES - The following jobs have failed:

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.

@zingo zingo merged commit 004bbd2 into pytorch:main Nov 13, 2025
141 of 143 checks passed
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