Commit 1251fa7
[ET-VK] Modernize embedding
Modernize embedding to support ANY_STORAGE. Add buffer and texture
shader variants using BufferMetadata/TextureMetadata with indexing.glslh.
Unify new dispatch path with add_storage_type_suffix and
graph.meta_ubo(). Legacy channels-packed texture path retained for
backward compatibility.
Pull Request resolved: pytorch#18057
ghstack-source-id: 353546689
@exported-using-ghexport
Differential Revision: [D95970161](https://our.internmc.facebook.com/intern/diff/D95970161/)1 parent 413c62e commit 1251fa7
4 files changed
Lines changed: 16 additions & 13 deletions
File tree
- backends/vulkan
- runtime/graph/ops
- glsl
- impl
- test/op_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1393 | 1401 | | |
1394 | | - | |
| 1402 | + | |
1395 | 1403 | | |
1396 | 1404 | | |
1397 | 1405 | | |
| 1406 | + | |
1398 | 1407 | | |
1399 | 1408 | | |
1400 | 1409 | | |
| |||
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
51 | | - | |
52 | | - | |
| 48 | + | |
| 49 | + | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | | - | |
1171 | | - | |
1172 | 1170 | | |
1173 | 1171 | | |
1174 | 1172 | | |
1175 | 1173 | | |
1176 | 1174 | | |
1177 | 1175 | | |
| 1176 | + | |
1178 | 1177 | | |
1179 | 1178 | | |
1180 | 1179 | | |
| |||
1186 | 1185 | | |
1187 | 1186 | | |
1188 | 1187 | | |
1189 | | - | |
| 1188 | + | |
1190 | 1189 | | |
1191 | 1190 | | |
1192 | 1191 | | |
| |||
0 commit comments