Commit fbf7878
authored
[mlir][tosa] Fix level check on unranked input tensor (#140795)
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.1 parent 4e9c3ce commit fbf7878
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