Skip to content

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

Merged
zingo merged 1 commit into
pytorch:mainfrom
martinlsm:main
Mar 17, 2025
Merged

Arm backend: Don't handle const placeholders in match_arg_ranks_pass#9134
zingo merged 1 commit into
pytorch:mainfrom
martinlsm:main

Conversation

@martinlsm

@martinlsmmartinlsm commented Mar 11, 2025

Copy link
Copy Markdown
Collaborator

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
@pytorch-bot

pytorch-botBot commented Mar 11, 2025

Copy link
Copy Markdown

🔗 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-botfacebook-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
Copy Markdown
CollaboratorAuthor

@pytorchbot label "topic: not user facing"

@martinlsm

Copy link
Copy Markdown
CollaboratorAuthor

@pytorchbot label ciflow/trunk

@pytorch-bot

Copy link
Copy Markdown

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

@martinlsm

Copy link
Copy Markdown
CollaboratorAuthor

@pytorchbot label "partner: arm"

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

Copy link
Copy Markdown
Contributor

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

@zingo

Copy link
Copy Markdown
Collaborator

macos fails unrelated

@zingo
zingo merged commit 82f3381 into pytorch:mainMar 17, 2025
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 <Martin.Lindstroem@arm.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunkCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.partner: armFor backend delegation, kernels, demo, etc. from the 3rd-party partner, Armtopic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@martinlsm@shoumikhin@zingo@facebook-github-bot