Skip to content

Conversation

abhinaykukkadapu
Copy link
Contributor

@abhinaykukkadapu abhinaykukkadapu commented Sep 9, 2025

Stack from ghstack (oldest at bottom):

While adding QNN recipes, i realized there are gaps in pre edge and edge transform passes in the recipe logic. Where the transform passes need exported program to resolve them dynamically at runtime. Changes made:

  • pre_edge_transform_passes is now renamed to aten_transform_passes
  • aten_transform_passes: now accepts list of transformation functions which takes in (method_name, ExportedProgram) and gives back ExportedProgram
    • aten_transform_passes: Optional[List[Callable[[str, ExportedProgram], ExportedProgram]]]
  • edge_transform_passes: Now this is a list of callables that resolves to a list of passes, callables is needed because some of the passes might need ExportedProgram which is only available during execution and not when recipe is created.
    • edge_transform_passes: None | List[Callable[[str, ExportedProgram], List[PassType]]]

Differential Revision: D81730890

…transform_passes definition to take exported program and method name.

While adding QNN recipes, i realized there are gaps in pre edge and edge transform passes in the recipe logic. Where the transform passes need exported program to resolve them dynamically at runtime. Changes made:

- `pre_edge_transform_passes` is now renamed to `aten_transform_passes`
- `aten_transform_passes`: now accepts list of transformation functions which takes in (method_name, ExportedProgram) and gives back ExportedProgram
   - `aten_transform_passes: Optional[List[Callable[[str, ExportedProgram], ExportedProgram]]]`
- `edge_transform_passes`: Now this is a list of callables that resolves to a list of passes, callables is needed because some of the passes might need ExportedProgram which is only available during execution and not when recipe is created.
   - `edge_transform_passes: None | List[Callable[[str, ExportedProgram], List[PassType]]]`

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Sep 9, 2025

🔗 Helpful Links

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

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

❌ 3 New Failures, 1 Cancelled Job, 1 Pending, 3 Unrelated Failures

As of commit f478443 with merge base 0b78412 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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 Sep 9, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81730890

Copy link

github-actions bot commented Sep 9, 2025

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.

…sses, edge_transform_passes definition to take exported program and method name."

While adding QNN recipes, i realized there are gaps in pre edge and edge transform passes in the recipe logic. Where the transform passes need exported program to resolve them dynamically at runtime. Changes made:

- `pre_edge_transform_passes` is now renamed to `aten_transform_passes`
- `aten_transform_passes`: now accepts list of transformation functions which takes in (method_name, ExportedProgram) and gives back ExportedProgram
   - `aten_transform_passes: Optional[List[Callable[[str, ExportedProgram], ExportedProgram]]]`
- `edge_transform_passes`: Now this is a list of callables that resolves to a list of passes, callables is needed because some of the passes might need ExportedProgram which is only available during execution and not when recipe is created.
   - `edge_transform_passes: None | List[Callable[[str, ExportedProgram], List[PassType]]]`

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81730890

…sses, edge_transform_passes definition to take exported program and method name."

While adding QNN recipes, i realized there are gaps in pre edge and edge transform passes in the recipe logic. Where the transform passes need exported program to resolve them dynamically at runtime. Changes made:

- `pre_edge_transform_passes` is now renamed to `aten_transform_passes`
- `aten_transform_passes`: now accepts list of transformation functions which takes in (method_name, ExportedProgram) and gives back ExportedProgram
   - `aten_transform_passes: Optional[List[Callable[[str, ExportedProgram], ExportedProgram]]]`
- `edge_transform_passes`: Now this is a list of callables that resolves to a list of passes, callables is needed because some of the passes might need ExportedProgram which is only available during execution and not when recipe is created.
   - `edge_transform_passes: None | List[Callable[[str, ExportedProgram], List[PassType]]]`

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81730890

…sses, edge_transform_passes definition to take exported program and method name."

While adding QNN recipes, i realized there are gaps in pre edge and edge transform passes in the recipe logic. Where the transform passes need exported program to resolve them dynamically at runtime. Changes made:

- `pre_edge_transform_passes` is now renamed to `aten_transform_passes`
- `aten_transform_passes`: now accepts list of transformation functions which takes in (method_name, ExportedProgram) and gives back ExportedProgram
   - `aten_transform_passes: Optional[List[Callable[[str, ExportedProgram], ExportedProgram]]]`
- `edge_transform_passes`: Now this is a list of callables that resolves to a list of passes, callables is needed because some of the passes might need ExportedProgram which is only available during execution and not when recipe is created.
   - `edge_transform_passes: None | List[Callable[[str, ExportedProgram], List[PassType]]]`

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81730890

@facebook-github-bot facebook-github-bot merged commit 9efd537 into gh/abhinaykukkadapu/9/base Sep 10, 2025
281 of 290 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/abhinaykukkadapu/9/head branch September 10, 2025 20:39
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants