Commit ef07ca9
authored
Convert StableHLO reshape to TOSA reshape (#2861)
[tosa.reshape](https://mlir.llvm.org/docs/Dialects/TOSA/#tosareshape-mlirtosareshapeop)
accepts shape as a second argument.
Conversion of the StableHLO reshape requires insertion of the
[tosa.const_shape](https://mlir.llvm.org/docs/Dialects/TOSA/#tosaconst_shape-mlirtosaconstshapeop)
op as an argument for the tosa.reshape.1 parent e1d2f65 commit ef07ca9
File tree
2 files changed
+43
-0
lines changed- stablehlo/conversions/tosa
- tests
- transforms
2 files changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
494 | 526 | | |
495 | 527 | | |
496 | 528 | | |
| |||
509 | 541 | | |
510 | 542 | | |
511 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
512 | 547 | | |
513 | 548 | | |
514 | 549 | | |
| |||
0 commit comments