Commit 2fe9dd3
[mlir][tosa] Add additional input output dtype verifiers for the following operators
- CastOp
- ConcatOp
- MatMulOp
- PadOp
- SliceOp
- TileOp
- ReshapeOp
- TransposeOp
- GatherOp
- ScatterOp
- MaxPool2dOp
- ReverseOp
- SelectOp
For ConcatOp specifically, this commit also enhances the verifier by
checking 4 another conditions:
- The input list is not empty
- The axis value is within range of the input shapes
- All inputs have the same rank
- All non concatenate axis dims have the same value
Change-Id: I1e8a1017f21f617443bc40bae42189915048c750
Co-authored-by: Tai Ly <[email protected]>
Co-authored-by: Luke Hutton <[email protected]>
Signed-off-by: Jerry Ge <[email protected]>1 parent fb25216 commit 2fe9dd3
File tree
3 files changed
+373
-13
lines changed- mlir
- include/mlir/Dialect/Tosa/IR
- lib/Dialect/Tosa/IR
- test/Dialect/Tosa
3 files changed
+373
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| |||
1421 | 1423 | | |
1422 | 1424 | | |
1423 | 1425 | | |
| 1426 | + | |
1424 | 1427 | | |
1425 | 1428 | | |
1426 | 1429 | | |
| |||
1796 | 1799 | | |
1797 | 1800 | | |
1798 | 1801 | | |
| 1802 | + | |
1799 | 1803 | | |
1800 | 1804 | | |
1801 | 1805 | | |
| |||
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
| 2059 | + | |
| 2060 | + | |
2055 | 2061 | | |
2056 | 2062 | | |
2057 | 2063 | | |
| |||
2079 | 2085 | | |
2080 | 2086 | | |
2081 | 2087 | | |
| 2088 | + | |
| 2089 | + | |
2082 | 2090 | | |
2083 | 2091 | | |
2084 | 2092 | | |
| |||
2175 | 2183 | | |
2176 | 2184 | | |
2177 | 2185 | | |
| 2186 | + | |
2178 | 2187 | | |
2179 | 2188 | | |
2180 | 2189 | | |
| |||
0 commit comments