Commit 28783db
Arm backend: Support high rank index tensor (#17951)
- Drop the rank>=4 rejection from index.Tensor TOSA support checks
- Add rank-4 and rank-5 index tensor test cases
- Note: rank>=4 support has been covered by the index.Tensor
refactor, removing the need for special handling in
ToTosaMemoryFormatPass
Change-Id: Ief40942a94040c02e54c7f276eecd660d571e46d
Arm backend: Refactor aten.index.tensor suppport
- Decompose edge.aten.index.Tensor via backend tosa.GATHER + shape ops
- Remove the index.Tensor node visitor
- Reorder AccumulateIndexPutPass (generates index.Tensor) and
DecomposeSliceScatterPass (may generate index_put) before
DecomposeIndexTensorToGatherPass
- Correct index_put tests to not test int inputs under FP-only profile
Change-Id: I5cfc7c110f0074463043ef1cb61165cc784a4db2
cc @digantdesai @SS-JIA @freddan80 @per @zingo @oscarandersson8218
@mansnils @Sebastian-Larsson @robell
---------
Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
Co-authored-by: Erik Lundell <erik.lundell@arm.com>1 parent 322857a commit 28783db
11 files changed
Lines changed: 500 additions & 343 deletions
File tree
- backends/arm
- _passes
- operator_support
- operators
- test/ops
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
| |||
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
332 | | - | |
333 | | - | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
| |||
0 commit comments