Commit 4e6bafa
Fix conv2d scratch buffer allocation to match CMSIS-NN wrapper dispatch
Use arm_convolve_wrapper_s8_get_buffer_size instead of
arm_convolve_s8_get_buffer_size so the buffer size matches whichever
specialized kernel arm_convolve_wrapper_s8 will actually dispatch to
at runtime (1x1 fast, 1xN, or general).
Also remove the Error::NotFound carve-out that silently proceeded with
a null scratch buffer — CMSIS-NN returns ARM_CMSIS_NN_ARG_ERROR when
ctx->buf is NULL and a buffer is required, so fail immediately on any
allocation error, consistent with the other cortex_m conv ops.
Update CMSIS-NN from v7.0.0 to 84303a51fd867c7ddbd23068b7ce930af1b6269d
and remove GIT_SHALLOW (incompatible with SHA-based FetchContent pins).
Co-authored-by: Claude <noreply@anthropic.com>1 parent 411061f commit 4e6bafa
File tree
2 files changed
+19
-16
lines changed- backends/cortex_m
- ops
2 files changed
+19
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
| 211 | + | |
| 212 | + | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| |||
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
227 | | - | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
0 commit comments