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: #11827 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/247/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/247/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/246/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/247/orig
@diff-train-skip-merge

SS-JIA added 3 commits June 24, 2025 22:00
Pull Request resolved: #11825

## Changes

* Introduce `permute_buffer.glsl` and `permute_texture.glsl` compute shader templates to implement the permute operator

## Motivation

The existing implementation of permute produced incorrect outputs for width packed textures. Furthermore, there was no buffer implementation for the permute operator.

My goal with this diff is to introduce a more flexible implementation of permute that could work for any tensor representation.

## Performance impact

None expected.
ghstack-source-id: 292530157
@exported-using-ghexport

Differential Revision: [D76483755](https://our.internmc.facebook.com/intern/diff/D76483755/)
Pull Request resolved: #11826

## Changes

* Allow test cases to specify storage types / memory layouts for individual args
* Allow test cases to specify different data generation functions for individual args

## Motivation

> Allow test cases to specify storage types / memory layouts for individual args

Make it possible to test args that require specific storage types for certain input/output tensors.

> Allow test cases to specify different data generation functions for individual args

Useful for debugging operators during development.
ghstack-source-id: 292530160
@exported-using-ghexport

Differential Revision: [D77038777](https://our.internmc.facebook.com/intern/diff/D77038777/)
Pull Request resolved: #11827

## Changes

* Add implementation for the group norm operator.

The operator is implemented via a 2 stage implementation. First, a reduction operator is executed to calculate the mean and standard deviation of each channel group. Then, the normalization is applied in an elementwise fashion.
ghstack-source-id: 292530158
@exported-using-ghexport

Differential Revision: [D77038778](https://our.internmc.facebook.com/intern/diff/D77038778/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner June 25, 2025 16:37
Copy link

pytorch-bot bot commented Jun 25, 2025

🔗 Helpful Links

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

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

⏳ 1 Pending, 1 Unrelated Failure

As of commit b1fed6b with merge base 89bdd1d (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@facebook-github-bot facebook-github-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 Jun 25, 2025
Base automatically changed from gh/SS-JIA/246/orig to main June 25, 2025 17:44
@SS-JIA SS-JIA merged commit faa4047 into main Jun 25, 2025
94 of 95 checks passed
@SS-JIA SS-JIA deleted the gh/SS-JIA/247/orig branch June 25, 2025 17:45
hinriksnaer pushed a commit to hinriksnaer/executorch that referenced this pull request Jun 26, 2025
## Changes

* Add implementation for the group norm operator.

The operator is implemented via a 2 stage implementation. First, a reduction operator is executed to calculate the mean and standard deviation of each channel group. Then, the normalization is applied in an elementwise fashion.

Differential Revision: [D77038778](https://our.internmc.facebook.com/intern/diff/D77038778/)
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.

3 participants