From 4f0e907cec088919bed1539a2cc57560f1171c98 Mon Sep 17 00:00:00 2001 From: yangfei Date: Mon, 27 Aug 2018 17:21:29 +0800 Subject: [PATCH] repair bug of predict ten times' diffent result in genet --- .../kernel/central-arm-func/conv_transpose_arm_func.h | 4 ++++ 1 file changed, 4 insertions(+) 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 343e5f1476..51dac36aee 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], -- GitLab