Commit 5cba1fb
[ET-VK][ez] Don't copy zeros for cache tensors
Currently, cache tensors for SDPA are prepacked even though the mutable buffer data just contains zeros.
For fused SDPA, this step can be skipped.
Differential Revision: [D86226137](https://our.internmc.facebook.com/intern/diff/D86226137/)
ghstack-source-id: 320850472
Pull Request resolved: #155801 parent c66ea27 commit 5cba1fb
File tree
2 files changed
+14
-6
lines changed- backends/vulkan/runtime/graph/ops
- glsl
- impl
2 files changed
+14
-6
lines changedLines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
87 | | - | |
88 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
89 | 98 | | |
90 | | - | |
91 | 99 | | |
92 | 100 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| |||
0 commit comments