Commit b2b3ed1
authored
[DT] Fix a bug in encoding propagation when there are scalar inputs. (#21596)
A linalg op can take scalars as inputs, and the encoding propagation can
ignore it. It is similar to 0-D tensor, but a scalar is used.
The failure is from the result of QuantizedMatmulToMatmul pass. We can
switch to 0-D tensor as a fix. However, it is a legal linalg op, so
supporting the propagation on scalars is a better fix.
---------
Signed-off-by: hanhanW <[email protected]>1 parent 3256168 commit b2b3ed1
File tree
2 files changed
+41
-1
lines changed- compiler/src/iree/compiler
- DispatchCreation/test
- ExternalInterfaces
2 files changed
+41
-1
lines changedLines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
330 | 365 | | |
331 | 366 | | |
332 | 367 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
0 commit comments