Skip to content

Commit

Permalink
fix arm int8 quant segmentation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxianzhi authored Aug 25, 2024
1 parent 6fcfa33 commit 31044be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute/tensor/src/cpu/arm/convolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ EE convolution_infer_forward_tmp_bytes_arm(TensorDesc inputDesc,
if (fdt == DT_I8) {
*bytes += ic * it * ih * iw;
}
if ((odt == DT_I8) || (odt == DT_F32)) {
if (odt != DT_I32) {
// scaled bias + results before quantization
*bytes += (oc + on * oc * ot * oh * ow) * bytesOf(DT_I32);
}
Expand Down

0 comments on commit 31044be

Please sign in to comment.