diff --git a/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.c index e590c18f219..e42041f3f29 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.c +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.c @@ -42,7 +42,6 @@ void ConvFp16(float16_t *input_data, float16_t *packed_input, float16_t *packed_ float16_t *col_major_gemm_input = col_major_input + task_id * deep * tile_n; size_t packed_input_size = deep * tile_n * sizeof(float16_t); memset(gemm_input, 0, packed_input_size); - memset(col_major_gemm_input, 0, packed_input_size); Im2ColPackUnitFp16(input_data + in_batch_offset, conv_param, gemm_input, real_cal_num, start_index); int out_offset = thread_id * tile_n * out_channel + out_batch_offset; diff --git a/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c index 5950763bcb5..673693e37c3 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c @@ -75,7 +75,6 @@ void ConvFp32(const float *input_data, float *packed_input, const float *packed_ float *col_major_gemm_input = col_major_input + task_id * deep * cal_num; size_t packed_input_size = deep * cal_num * sizeof(float); memset(gemm_input, 0, packed_input_size); - memset(col_major_gemm_input, 0, packed_input_size); Im2ColPackUnitFp32(input_data + in_batch_offset, conv_param, gemm_input, real_cal_num, start_index); int out_offset = thread_id * cal_num * out_channel + out_batch_offset;