Commit 926a760
committed
Update base for Update on "[ET-VK] Allow specifying multiple storage types/memory layouts for an operator + register group norm operator"
## Changes
* Handle cases where an operator needs to specify a separate storage type / memory layout for each individual output.
## Motivation
Required for the group norm operator.
## Future Work
Currently, the `tag_memory_meta_pass` graph pass assumes that all tensors participating in a computation (aside from weights) will have the same storage type and memory layout. As more operators are being added, there are more exceptions to this rule.
The pass may need an update in the near future to make it possible to specify required storage types and memory layouts on a more granular level.
Differential Revision: [D77038781](https://our.internmc.facebook.com/intern/diff/D77038781/)
[ghstack-poisoned]1 parent a9958a3 commit 926a760
File tree
2 files changed
+12
-9
lines changed- backends/vulkan
- runtime/graph/ops/glsl
- test/op_tests
2 files changed
+12
-9
lines changedLines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
70 | | - | |
71 | | - | |
| 66 | + | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
| |||
133 | 129 | | |
134 | 130 | | |
135 | 131 | | |
136 | | - | |
| 132 | + | |
137 | 133 | | |
138 | 134 | | |
139 | 135 | | |
| |||
181 | 177 | | |
182 | 178 | | |
183 | 179 | | |
184 | | - | |
185 | | - | |
| 180 | + | |
| 181 | + | |
186 | 182 | | |
187 | 183 | | |
188 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| 654 | + | |
654 | 655 | | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
| 659 | + | |
658 | 660 | | |
659 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
660 | 666 | | |
661 | 667 | | |
662 | 668 | | |
| |||
667 | 673 | | |
668 | 674 | | |
669 | 675 | | |
| 676 | + | |
670 | 677 | | |
671 | 678 | | |
672 | 679 | | |
| |||
0 commit comments