executorch icon indicating copy to clipboard operation
executorch copied to clipboard

Remove no-op clones (WIP)

Open GregoryComer opened this issue 1 month ago • 2 comments

Differential Revision: D86588171

GregoryComer avatar Nov 15 '25 01:11 GregoryComer

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15838

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

:x: 2 New Failures, 1 Unrelated Failure

As of commit a745b0c88858fee0e34b0ad92f10ceed47071617 with merge base a09a4b74feb4680c840f37c458fc291e36ce78bd (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following job 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.

pytorch-bot[bot] avatar Nov 15 '25 01:11 pytorch-bot[bot]

@GregoryComer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86588171.

meta-codesync[bot] avatar Nov 15 '25 01:11 meta-codesync[bot]

@GregoryComer has imported this pull request. If you are a Meta employee, you can view this in D86588171.

meta-codesync[bot] avatar Nov 17 '25 21:11 meta-codesync[bot]

@MartinPavella @StrycekSimon I'm looking at optimizing out clones more aggressively from the graph during to_edge. I see that the NXP backend has some test coverage looking at clones in the context of the dropout op. Do you have any concerns with removal of clones from the graph? If not, I'm happy to take a pass at updating the tests accordingly.

GregoryComer avatar Nov 18 '25 22:11 GregoryComer

@MartinPavella @StrycekSimon I'm looking at optimizing out clones more aggressively from the graph during to_edge. I see that the NXP backend has some test coverage looking at clones in the context of the dropout op. Do you have any concerns with removal of clones from the graph? If not, I'm happy to take a pass at updating the tests accordingly.

Hi @GregoryComer , we have no issues with removing clones which leave the dim order unchanged. Feel free to skip our tests for now. We will update them accordingly later if need be.

MartinPavella avatar Nov 20 '25 14:11 MartinPavella