Skip to content

[ET-VK][conv1d] Route conv1d to height-packed implementations in export pipeline#18549

Merged
SS-JIA merged 1 commit intogh/SS-JIA/495/origfrom
gh/SS-JIA/496/orig
Mar 27, 2026
Merged

[ET-VK][conv1d] Route conv1d to height-packed implementations in export pipeline#18549
SS-JIA merged 1 commit intogh/SS-JIA/495/origfrom
gh/SS-JIA/496/orig

Conversation

@pytorchbot
Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #18334 by @SS-JIA
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/496/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/496/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/495/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/496/orig
Differential Revision: D97344090
@diff-train-skip-merge

…rt pipeline

Pull Request resolved: #18334

Integrate the new height-packed conv1d_pw and conv1d_dw operators into the
aten.convolution.default dispatch path so they are automatically used during
model export.

In op_registry.py, add a pick_conv_storage function that inspects the
convolution node at partition time. For 1D convolutions where the op is
pointwise (kernel_size=1) or depthwise (groups=C_in) and channels are 4-aligned,
it selects HEIGHT_PACKED_TEXTURE for input/output instead of the default
CHANNELS_PACKED_TEXTURE. All other cases (conv2d, grouped conv1d with K>1,
unaligned channels) retain channels-packed behavior.

In Convolution.cpp, add a height-packed routing block at the top of the conv1d
path. When the input tensor is height-packed, it dispatches to
et_vk.conv1d_pw.default or et_vk.conv1d_dw.default via VK_GET_OP_FN. Falls
through to the existing channels-packed add_conv1d_node path otherwise.
ghstack-source-id: 358903217
@exported-using-ghexport

Differential Revision: [D97344090](https://our.internmc.facebook.com/intern/diff/D97344090/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner March 27, 2026 22:01
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 27, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18549

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

❌ 1 New Failure, 134 Pending

As of commit 8786ba6 with merge base 7c79395 (image):

NEW FAILURE - The following job has failed:

  • Lint / lintrunner-mypy (gh)
    >>> Lint for backends/arm/test/models/stable_diffusion/stable_diffusion_module_test_configs.py:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 27, 2026
@SS-JIA SS-JIA merged commit e6b19eb into gh/SS-JIA/495/orig Mar 27, 2026
149 of 162 checks passed
@SS-JIA SS-JIA deleted the gh/SS-JIA/496/orig branch March 27, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants