You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "Eliminate redundant NCHW↔NHWC permute_copy and NHWC-safe view_copy transposes in ToTosaMemoryFormatPass" (pytorch#18555)
Reverts pytorch#18314.
### Summary
Reverts the NHWC-safe reshape detection and redundant `permute_copy`
elimination introduced in pytorch#18314 (`ToTosaMemoryFormatPass`).
### Test plan
Full revert of pytorch#18314 — no new logic introduced. Relevant tests:
```
pytest backends/arm/test/passes/test_to_tosa_memory_format.py
pytest backends/arm/test/ -v
```
These require the Arm/TOSA toolchain and cannot run in the automation
environment.
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
> Create a revert pull request for merged PR
pytorch#18314 in repository
pytorch/executorch.
>
> Requirements:
> 1) Create a new branch off the default branch (main unless repo
indicates otherwise).
> 2) Revert the merge commit(s) introduced by PR pytorch#18314 ("Eliminate
redundant NCHW↔NHWC permute_copy and NHWC-safe view_copy transposes in
ToTosaMemoryFormatPass"). Use `git revert -m 1 <merge_sha>`-equivalent
semantics if it was merged via a merge commit; otherwise revert the
relevant commits.
> 3) Ensure the revert builds/tests as per repo conventions:
> - Run the existing CI-relevant unit tests or minimal test suite if
available in repo documentation.
> - If running tests is not possible in the automation environment, add
a note in the PR description explaining what should be run.
> 4) PR title should be: "Revert \"Eliminate redundant NCHW↔NHWC
permute_copy and NHWC-safe view_copy transposes in
ToTosaMemoryFormatPass\""
> 5) PR description should include:
> - Link to PR pytorch#18314
> - Brief explanation that this PR reverts pytorch#18314
> - Any conflicts resolved or follow-up actions needed.
>
> Acceptance criteria:
> - The revert PR cleanly applies to the base branch and restores
behavior prior to pytorch#18314.
> - No unrelated formatting or refactoring changes.
>
>
> The following is the prior conversation context from the user's chat
exploration (may be truncated):
>
> User: can you create a revert PR
>
> Assistant: I’m waiting for you to accept the pending action request;
once you do, I can proceed to create the revert pull request for
pytorch#18314.
>
>
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
*This pull request was created from Copilot chat.*
>
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 Send tasks to Copilot coding agent from
[Slack](https://gh.io/cca-slack-docs) and
[Teams](https://gh.io/cca-teams-docs) to turn conversations into code.
Copilot posts an update in your thread when it's finished.
cc @digantdesai@freddan80@per@zingo@oscarandersson8218@mansnils@Sebastian-Larsson@robell
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zingo <368986+zingo@users.noreply.github.com>
0 commit comments