Skip to content

Conversation

@pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #17249 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/411/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/411/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/410/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/411/orig
Differential Revision: D92407723
@diff-train-skip-merge

@pytorchbot pytorchbot requested a review from SS-JIA as a code owner February 5, 2026 23:29
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 5, 2026

🔗 Helpful Links

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

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

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 Feb 5, 2026
@SS-JIA SS-JIA force-pushed the gh/SS-JIA/410/orig branch from 6876097 to 3eb0bd4 Compare February 6, 2026 00:39
Base automatically changed from gh/SS-JIA/410/orig to main February 6, 2026 00:39
Pull Request resolved: #17249

This implements an im2col-based approach for quantized conv2d, which
transforms convolution into matrix multiplication. The im2col
transformation extracts sliding windows from the input tensor and
reshapes them into a 2D matrix, enabling reuse of the optimized
pointwise convolution shader for the compute-intensive portion.

Two im2col shaders are added:
- `q8ta_im2col.glsl`: Generic shader with layout-agnostic input access
  via BufferMetadata and specialization constants
- `q8ta_im2col_4w4c.glsl`: Optimized shader for 4W4C input layout that
  exploits the alignment between consecutive width positions and packed
  channel values

The im2col output is always stored in 4W4C layout to match the expected
input format of the pointwise convolution shader. The operator is
registered as `etvk.q8ta_conv2d_im2col.default` and currently supports
non-grouped convolutions where input channels is a multiple of 4.

Authored with assistance from Claude.
ghstack-source-id: 338638552
@exported-using-ghexport

Differential Revision: [D92407723](https://our.internmc.facebook.com/intern/diff/D92407723/)
@SS-JIA SS-JIA force-pushed the gh/SS-JIA/411/orig branch from d49bf74 to 5e545ea Compare February 6, 2026 00:40
@SS-JIA SS-JIA merged commit d05fe5e into main Feb 6, 2026
29 of 30 checks passed
@SS-JIA SS-JIA deleted the gh/SS-JIA/411/orig branch February 6, 2026 00:40
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

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