Skip to content

Do not decompose pad op#29

Open
jakesabathia2 wants to merge 1 commit into
apple:mainfrom
jakesabathia2:upstream/fix-pad-lowering
Open

Do not decompose pad op#29
jakesabathia2 wants to merge 1 commit into
apple:mainfrom
jakesabathia2:upstream/fix-pad-lowering

Conversation

@jakesabathia2

Copy link
Copy Markdown
  • The pad op with modes except constant is decomposed into smaller ops, which make the IR complicated.
  • Let's exclude the pad op from the default decomposition table and do the lowering ourselves.

Testing:
Unittests

Comment thread docs/coreai-core/tutorials/construct-a-graph.ipynb
Comment thread coreai_torch/_aten_to_core.py
@jakesabathia2 jakesabathia2 force-pushed the upstream/fix-pad-lowering branch from 36afe4c to 6d305ec Compare July 3, 2026 01:13
@jakesabathia2 jakesabathia2 force-pushed the upstream/fix-pad-lowering branch from 6d305ec to 06b2f8f Compare July 3, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants