pytorch / pytorch/executorch

[Memory-layout infra] Create common permute fusing passes

Open
#20,098 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

Create a set of well designed general passes for permute fusing. These can be based on existing passes.

  • Passes should do one easily understandable thing. You want to be able to predict the output from the pass.
  • Prefer one single general solution over many edge-cases where possible.
  • Passes should be easily read and well documented.
  • Passes may not depend on any backend-specific assumptions

The goal for this task is to reach a net count of 0 or less for the number of permutes before/ after running the convertion to exir_ops.edge.channels_last dialect over the full permute count test-suite created in #20097.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the full permute count test suite created in #20097 and compare counts before and after conversion to the exir_ops.edge.channels_last dialect. Review existing permute-fusing passes as possible foundations, keeping the desired behavior backend-independent and each pass easy to predict. Done means the suite reaches a net permute count of zero or less and the passes are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.