Commit 48ff29e
authored
Arm backend: Add CanonicalizeViewCopyPermutePass (pytorch#20276)
This pass replaces PostponePermuteOpBelowSqueezeOrUnsqueezeLikeView
using a more general condition for which permute-view combinations may
be
fused, see docstrings.
+ remove stale comments in mha test
Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>1 parent ed6e2e2 commit 48ff29e
9 files changed
Lines changed: 1438 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
616 | 613 | | |
617 | 614 | | |
618 | 615 | | |
619 | | - | |
| 616 | + | |
620 | 617 | | |
621 | | - | |
622 | 618 | | |
623 | 619 | | |
624 | 620 | | |
| |||
0 commit comments