Skip to content

Conversation

AdrianLundell
Copy link
Collaborator

@AdrianLundell AdrianLundell commented Sep 8, 2025

  • Removes all use of the _to_copy/clone operator. These ops are lowered to _to_dim_order_copy/ clone_dim_order in the to_edge step when skip_dim_order=False, which we expect.

  • Remove all dim_order kwargs in the to_tosa_memory_format_pass since we set our own dim_order.

  • Add a pass for storing the initial output dim_order to verify that it has not changed unexpectedly.

  • Replace RemoveClonePass with more general RemoveNoopPass which also handles to_dim_order ops casting to the same dtype. Move to after the to_tosa_memory_pass to tidy up after it.

  • Change the delegation of to_copy_dim_order_support to pick up casts of the same dtype, as they are removed as noops anyways.

Minor fixes:

  • Renames to_copy tests to be picked up by the op name parser.
  • Moves cast_int64 pass to after compute_constant_ops_aot to assert the buffer exists in .state_dict before accessing it.
  • Replace fatal xfail for test_CLIPTextModelWithProjection with numerical diff xfail

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

- Removes all use of the _to_copy/clone operator. These ops are lowered
  to _to_dim_order_copy/ clone_dim_order in the to_edge step when
  skip_dim_order=False, which we expect.

- Remove all dim_order kwargs in the to_tosa_memory_format_pass
  since we set our own dim_order.

- Add a pass for storing the initial output dim_order to verify
  that it has not changed unexpectedly.

- Replace RemoveClonePass with more general RemoveNoopPass which
  also handles to_dim_order ops casting to the same dtype. Move
  to after the to_tosa_memory_pass to tidy up after it.

- Change the delegation of to_copy_dim_order_support to pick up
  casts of the same dtype, as they are removed as noops anyways.

Minor fixes:
- Renames to_copy tests to be picked up by the op name parser.
- Moves cast_int64 pass to after compute_constant_ops_aot to assert
  the buffer exists in .state_dict before accessing it.
- Replace fatal xfail for test_CLIPTextModelWithProjection with
  numerical diff xfail

Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>
Change-Id: I42c2149a04037e181d08631848caccb658a2c631
Copy link

pytorch-bot bot commented Sep 8, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit 39cd47b with merge base 2845fd3 (image):

NEW FAILURES - The following jobs have failed:

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

@AdrianLundell AdrianLundell added the module: arm Issues related to arm backend label Sep 8, 2025
@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 8, 2025
@AdrianLundell AdrianLundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing release notes: none Do not include this in the release notes ciflow/trunk and removed module: arm Issues related to arm backend labels Sep 8, 2025
@zingo zingo added this to the 1.0.0 milestone Sep 9, 2025
Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>
@AdrianLundell
Copy link
Collaborator Author

Fails are unrelated

@zingo zingo merged commit 59b9707 into pytorch:main Sep 9, 2025
530 of 535 checks passed
@AdrianLundell AdrianLundell deleted the change-1091664 branch September 9, 2025 13:01
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 release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants