Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18555
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Cancelled Job, 2 Unrelated FailuresAs of commit 109ac08 with merge base 502d2de ( NEW FAILURE - The following job has failed:
CANCELLED JOB - The following job was cancelled. Please retry:
BROKEN TRUNK - The following jobs 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. |
This PR needs a
|
…_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>
Reverts #18314.
Summary
Reverts the NHWC-safe reshape detection and redundant
permute_copyelimination introduced in #18314 (ToTosaMemoryFormatPass).Test plan
Full revert of #18314 — no new logic introduced. Relevant tests:
These require the Arm/TOSA toolchain and cannot run in the automation environment.
Original prompt
This pull request was created from Copilot chat.
💬 Send tasks to Copilot coding agent from Slack and Teams 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