!10831 [MS][LITE][CPU]fix bug (int8 mul inference error)

From: @fuzhiye
Reviewed-by: @zhang_xue_tong,@hangangqiang
Signed-off-by: @zhang_xue_tong
This commit is contained in:
mindspore-ci-bot 2020-12-30 16:27:50 +08:00 committed by Gitee
commit f3fd41f7f0
1 changed files with 1 additions and 2 deletions

View File

@ -236,8 +236,7 @@ void Mul(int8_t *input0_data, int8_t *input1_data, int8_t *output_data, int64_t
mul_result += para.out_quant_arg_.zp_;
mul_result = mul_result < para.output_activation_max_ ? mul_result : para.output_activation_max_;
mul_result = mul_result > para.output_activation_min_ ? mul_result : para.output_activation_min_;
output_data[0] = (int8_t)mul_result;
output_data++;
output_data[index] = (int8_t)mul_result;
}
return;
}