Commit dc09af3
committed
Update on "[ET-VK] Store unique ptr to Tensor in Value instead of inlined tensor object, to reduce Value struct size from 448 to 80 bytes."
This diff aims to reduce the size of the Value struct in the Executorch Vulkan runtime by storing a unique pointer to the Tensor object instead of an inlined tensor object. This change reduces the size of the Value struct from 448 bytes to 80 bytes, which can improve performance and reduce memory usage.
Differential Revision: [D66655991](https://our.internmc.facebook.com/intern/diff/D66655991/)
[ghstack-poisoned]File tree
129 files changed
+22149
-915
lines changed- .github
- scripts
- workflows
- backends
- arm
- _passes
- operator_support
- operators
- test
- ops
- passes
- cadence
- aot
- fusion_g3/operators
- tests
- reference/operators
- qualcomm/quantizer
- codegen/tools
- test
- devtools
- examples
- arm
- demo-apps/react-native/rnllama
- app
- assets/images
- bridge
- ios
- rnllama.xcodeproj
- rnllama.xcworkspace
- rnllama
- Images.xcassets
- AppIcon.appiconset
- SplashScreenBackground.colorset
- SplashScreenLogo.imageset
- Supporting
- models/llama/source_transformation
- qualcomm/oss_scripts
- llama2
- model
- runner
- llama3_2
- runner
- exir
- passes
- tests
- extension
- benchmark
- android/benchmark
- apple/Benchmark
- llm/custom_ops
- tensor
- kernels
- aten
- cpu
- portable
- cpu
- test
- shim/xplat/executorch
- codegen
- kernels/portable
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
129 files changed
+22149
-915
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
128 | 167 | | |
129 | 168 | | |
130 | 169 | | |
| |||
170 | 209 | | |
171 | 210 | | |
172 | 211 | | |
173 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
174 | 218 | | |
175 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
176 | 224 | | |
177 | 225 | | |
178 | 226 | | |
| |||
212 | 260 | | |
213 | 261 | | |
214 | 262 | | |
| 263 | + | |
215 | 264 | | |
216 | 265 | | |
217 | 266 | | |
| |||
231 | 280 | | |
232 | 281 | | |
233 | 282 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 283 | + | |
238 | 284 | | |
239 | 285 | | |
240 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
117 | 154 | | |
118 | 155 | | |
119 | 156 | | |
| |||
173 | 210 | | |
174 | 211 | | |
175 | 212 | | |
176 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
177 | 219 | | |
178 | 220 | | |
179 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
180 | 226 | | |
181 | 227 | | |
182 | 228 | | |
| |||
282 | 328 | | |
283 | 329 | | |
284 | 330 | | |
| 331 | + | |
285 | 332 | | |
286 | 333 | | |
287 | 334 | | |
| |||
307 | 354 | | |
308 | 355 | | |
309 | 356 | | |
310 | | - | |
311 | | - | |
| 357 | + | |
312 | 358 | | |
313 | 359 | | |
314 | 360 | | |
| |||
This file was deleted.
0 commit comments