Commit ad03e24
committed
Update on "[ET-VK] Implement `native_group_norm"
## 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/)
[ghstack-poisoned]File tree
2 files changed
+7
-17
lines changed- backends/vulkan
- runtime/graph/ops/impl
- test/op_tests
2 files changed
+7
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
146 | | - | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
651 | | - | |
| 649 | + | |
652 | 650 | | |
653 | 651 | | |
654 | 652 | | |
| |||
662 | 660 | | |
663 | 661 | | |
664 | 662 | | |
665 | | - | |
666 | | - | |
667 | 663 | | |
668 | 664 | | |
669 | 665 | | |
670 | | - | |
671 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
672 | 670 | | |
673 | | - | |
674 | 671 | | |
675 | 672 | | |
676 | 673 | | |
677 | 674 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | 675 | | |
684 | 676 | | |
685 | 677 | | |
| |||
798 | 790 | | |
799 | 791 | | |
800 | 792 | | |
801 | | - | |
802 | 793 | | |
803 | 794 | | |
804 | 795 | | |
| |||
0 commit comments