diff --git a/src/operators/kernel/central-arm-func/conv_transpose_arm_func.h b/src/operators/kernel/central-arm-func/conv_transpose_arm_func.h index 343e5f147644cc5bb86c2929d4bd35b44301c4cf..51dac36aee0634ff0fb2b4bc1bcc45f663f84462 100644 --- a/src/operators/kernel/central-arm-func/conv_transpose_arm_func.h +++ b/src/operators/kernel/central-arm-func/conv_transpose_arm_func.h @@ -96,6 +96,10 @@ void ConvTransposeCompute(const ConvTransposeParam ¶m) { math::matmul(filter_slice, true, in_slice, false, static_cast

(1.0), &col_matrix, static_cast

(0.0)); + //初始化out_slice的值为0 + float *tmp = out_slice.data(); + int numel = out_slice.numel(); + memset(static_cast(tmp), 0, sizeof(float) * numel); if (data_dim == 2U) { col2im(col, dilations, strides, std::vector{paddings[0], paddings[1], paddings[0],