Skip to content

Arm backend: Don't handle const placeholders in match_arg_ranks_pass #9134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

martinlsm
Copy link
Collaborator

@martinlsm martinlsm commented Mar 11, 2025

This pass did previously handle constant placeholders directly by modifying the data in the state_dict, whereas call_functions are handled by inserting view ops. Since the introduction of the FuseConsantOpsPass however, ops acting on constant placeholders are computed AOT and fused into one single node.

We can therefore now handle all nodes the same way here by inserting view nodes, removing the need for a special case in this pass.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

This pass did previously handle constant placeholders directly by modifying the data in the state_dict, whereas call_functions are handled by inserting view ops. Since the introduction of the FuseConsantOpsPass however, ops acting on constant placeholders are computed AOT and fused into one single node.

We can therefore now handle all nodes the same way here by inserting view nodes, removing the need for a special case in this pass.


Change-Id: If282eea352205e1b0b10b9b747642fa0d6caa4b3
@martinlsm martinlsm requested a review from digantdesai as a code owner March 11, 2025 14:54
Copy link

pytorch-bot bot commented Mar 11, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 2 Cancelled Jobs

As of commit 0b965bb with merge base ddf0d9e (image):

NEW FAILURE - The following job has failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

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

@facebook-github-bot facebook-github-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 Mar 11, 2025
@martinlsm
Copy link
Collaborator Author

@pytorchbot label "topic: not user facing"

@martinlsm
Copy link
Collaborator Author

@pytorchbot label ciflow/trunk

Copy link

pytorch-bot bot commented Mar 11, 2025

Didn't find following labels among repository labels: partner:arm

@martinlsm
Copy link
Collaborator Author

@pytorchbot label "partner: arm"

@pytorch-bot pytorch-bot bot added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Mar 11, 2025
@shoumikhin
Copy link
Contributor

@digantdesai, @kimishpatel can you please take a look?

@zingo
Copy link
Collaborator

zingo commented Mar 17, 2025

macos fails unrelated

@zingo zingo merged commit 82f3381 into pytorch:main Mar 17, 2025
123 of 128 checks passed
DannyYuyang-quic pushed a commit to CodeLinaro/executorch that referenced this pull request Apr 2, 2025
…ytorch#9134)

This pass did previously handle constant placeholders directly by
modifying the data in the state_dict, whereas call_functions are handled
by inserting view ops. Since the introduction of the FuseConsantOpsPass
however, ops acting on constant placeholders are computed AOT and fused
into one single node.

We can therefore now handle all nodes the same way here by inserting
view nodes, removing the need for a special case in this pass.


Signed-off-by: Martin Lindström <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants