Commit 51cd95e
committed
[GAP9] unmask FP32 GEMM and SkipConnection paths
Two FP32 kernel tests regressed since the NE16 Linear PR integration:
1. FP32 GEMM/Regular: the new GAP9_NE16GEMMInt32Mapper was prepended to
the plain Gemm op binding list. It uses the same GEMMParser class as
the FloatGEMM and GEMMDequant mappers, and Deeploy keys candidate
bindings by parser class — so listing the NE16Int32 mapper first
masked the other two. FP32 inputs failed the NE16Int32 type check
and there was no backtrack to the FloatGEMM mapper.
Drop GAP9_NE16GEMMInt32Mapper from the Gemm op list (the int8/uint8
path is already covered by RequantizedGemm with its own NE16 mapper).
2. FP32 Reshape/SkipConnection: MatMulAddMergePass fused MatMul+Add
into a Gemm with alpha=beta=1 and no transA/transB. The MatMul inputs
in this test don't share Gemm semantics, so the merge produced
wrong outputs (16/16 errors). Devel base doesn't include this pass
in the GAP9 lowering chain and the test passes there. Disable it
for GAP9 to match.
gvsoc gap9.evk:
- FP32 GEMM/Regular: 0/1024 errors, 28987 cycles
- FP32 Reshape/SkipConnection: 0/16 errors, 8343 cycles
- devel base: 0/1024, 28k-ish; 0/16, 8020 cycles — same shape.
gap9_tiled suite: 96 passed / 1 failed (was 92/5).
Remaining failure (Models/CCT/FP32/CCT_2_32_32_128) also fails at
3b011bb devel base — pre-existing, unrelated to this PR.1 parent c01425b commit 51cd95e
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| |||
0 commit comments