Skip to content

Conversation

keyprocedure
Copy link
Contributor

@keyprocedure keyprocedure commented Sep 16, 2025

Summary

op__to_dim_order_copy no longer requires broadcast_util.
In the process of implementing clone_dim_order, the helper function _to_dim_order_copy_impl was moved from op__to_dim_order_copy.cpp into copy_ops_util.h. The only reason broadcast_util was needed was to support that helper, so it can now be dropped from op__to_dim_order_copy.

Test plan

Enabled op__to_dim_order_copy_test in kernel test CMakeLists.txt

All tests passed via:
./build-ninja/kernels/test/portable_kernels_test --gtest_filter='OpToDimOrderCopyTest.*'

cc @Gasoonjia

Copy link

pytorch-bot bot commented Sep 16, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 4a56036 with merge base 5a1c117 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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 16, 2025
@keyprocedure
Copy link
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Sep 16, 2025
@Gasoonjia
Copy link
Contributor

thanks for continuous improving! will stamp after ci passes!

@keyprocedure
Copy link
Contributor Author

Sounds good! CI passed except for a known flaky trunk test.

@swolchok swolchok merged commit a9e265f into pytorch:main Sep 16, 2025
127 of 129 checks passed
StrycekSimon pushed a commit to nxp-upstream/executorch that referenced this pull request Sep 23, 2025
pytorch#14323)

### Summary
`op__to_dim_order_copy` no longer requires `broadcast_util`.
In the process of implementing
[clone_dim_order](pytorch#12974), the
helper function `_to_dim_order_copy_impl` was moved from
[op__to_dim_order_copy.cpp](https://github.com/pytorch/executorch/pull/12974/files/06c38ad587c463a360eaed1c2582a9a9dca7bbe6#diff-4f7616dde078e699c95824f2e5446bf4f47ffa53cac140e13ec84cf2065ab294L32)
into
[copy_ops_util.h](https://github.com/pytorch/executorch/pull/12974/files/06c38ad587c463a360eaed1c2582a9a9dca7bbe6).
The only reason `broadcast_util` was needed was to support that helper,
so it can now be dropped from `op__to_dim_order_copy`.

### Test plan
Enabled `op__to_dim_order_copy_test` in [kernel test
CMakeLists.txt](https://github.com/pytorch/executorch/blob/4a4f5a034b6cda395abe7b6aa13b8066b776ffb2/kernels/test/CMakeLists.txt#L289)

All tests passed via: 
`./build-ninja/kernels/test/portable_kernels_test
--gtest_filter='OpToDimOrderCopyTest.*'`

cc @Gasoonjia
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. 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