Commit 385d2e6
authored
[Rewriter(matmul_add_to_gemm)]: check shapes (#2528)
As we need to check the rank of input shapes, we need to ensure that
input shapes are not None before checking their rank. Used
`_ir_utils.has_rank` to handle that.1 parent 93e428d commit 385d2e6
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments