Skip to content

Commit 325ae7d

Browse files
author
kiyaev
committed
Refacotre code in depthwise_convolution2D_hwc for odd ch
1 parent 318153a commit 325ae7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/kernels/convolution/mli_krn_conv2d_hwc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ static __attribute__ ((always_inline)) void depthwise_convolution2D_hwc(
341341
accu = dotprod2D(&in_ptr[w_idx_in * in_ch * filters], &w_ptr[comp.left * filters * out_ch], accu, clmns, rows,
342342
in_col_step, in_row_step, krn_col_step, krn_row_step);
343343

344-
int32_t prev_w_adds = weights_additive(&w_ptr[comp.left * filters * out_ch], 0x0, &quant_params, clmns, rows, krn_col_step, krn_row_step);
344+
int32_t w_adds = weights_additive(&w_ptr[comp.left * filters * out_ch], 0x0, &quant_params, clmns, rows, krn_col_step, krn_row_step);
345345

346-
accu = fx_add_q31(accu, prev_w_adds);
347-
accu = fx_add_q31(bias_add, accu);
346+
accu += w_adds;
347+
accu += bias_add;
348348

349349
// Cast result to output type
350350
mli_prv_clip_relu_store_output(out_ptr, accu, &quant_params, val_min_limit, val_max_limit);

0 commit comments

Comments
 (0)