Commit e983693
authored
Cortex-M backend: Verify output shape before rewriting AdaptiveAvgPool (pytorch#19935)
The pass only does a naive rewrite, so check that the output shape
actually matches after the rewrite before doing it.
Signed-off-by: Erik Lundell <erik.lundell@arm.com>1 parent aa8a182 commit e983693
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
0 commit comments