Commit 5a6cefd
committed
Arm backend: Fix ensures check in UnsqueezeScalarPlaceholdersPass
- In UnsqueezeScalarPlaceholdersPass, only the placeholders that
meet certain conditions will be unsqueezed. Otherwise, they
retain their original shape.
This patch adds a new check to ensure that placeholders that
don't meet the conditions should be skipped
Change-Id: I9d348dff607f04f2dd28d2b9ef744c1bda410f5d
Signed-off-by: Yufeng Shi <[email protected]>1 parent 3c21e3a commit 5a6cefd
1 file changed
+10
-7
lines changedLines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
0 commit comments