Commit bac8cec
committed
[mlir][tosa] Fix level check on unranked input tensor
This commit fixes a segfault that occurred on operators with
unranked input tensors. Operator specific level checks performed
before the rank check incorrectly assumed all inputs were shaped.
Change-Id: Ib1e60f5bd59f1bd74c0276fe208383ef30dceb181 parent 72b2219 commit bac8cec
File tree
2 files changed
+91
-83
lines changed- mlir
- lib/Dialect/Tosa/Transforms
- test/Dialect/Tosa
2 files changed
+91
-83
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
761 | 765 | | |
762 | 766 | | |
763 | 767 | | |
| |||
770 | 774 | | |
771 | 775 | | |
772 | 776 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
0 commit comments