Commit 3ef00a8
morelos
[ET-VK][ez][Ops] registering Q/DQ/CQP ops and specifying optimal storage
# Context
Certain quantization operators need scales and zeros to be set with a storage layout as buffers. Since the existing op_registry does not allow specifying how input parameters are set with their memory or storage layout, we need to specify that the optimal storage type is buffer so that is conversion pass is added to ensure that the inputs are also buffers.
# Changes
This moves the quantized_decomposed operators in their own registration, while also specifying that buffer is preferred.
Differential Revision: [D77746131](https://our.internmc.facebook.com/intern/diff/D77746131/)
ghstack-source-id: 294160265
Pull Request resolved: #122001 parent 28eba39 commit 3ef00a8
1 file changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 224 | | |
232 | 225 | | |
233 | 226 | | |
| |||
250 | 243 | | |
251 | 244 | | |
252 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
253 | 275 | | |
254 | 276 | | |
255 | 277 | | |
| |||
0 commit comments