Skip to content

Commit 30c4a4f

Browse files
committed
cnn: Fix wrong cnn-run print
expect_length was reading uninitialized memory
1 parent dae6e61 commit 30c4a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tinymaix_cnn/mod_cnn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static mp_obj_t mod_cnn_run(mp_obj_t self_obj, mp_obj_t input_obj, mp_obj_t outp
219219
tm_mat_t out = outs[0];
220220

221221
#if DEBUG
222-
mp_printf(&mp_plat_print, "cnn-run out.dims=(%d,%d,%d,%d) out.length=%d expect_length=%d \n",
222+
mp_printf(&mp_plat_print, "cnn-run out.dims=(%d,%d,%d,%d) expect_length=%d \n",
223223
out.dims, out.h, out.w, out.c, expect_out_length
224224
);
225225
#endif

0 commit comments

Comments
 (0)