diff --git a/lite/backends/arm/math/pooling.cc b/lite/backends/arm/math/pooling.cc index f10eaffe10f54b5ce91c788f645516ddd6a08917..55eb37eece0456c3797623137f6eb496df2079ce 100644 --- a/lite/backends/arm/math/pooling.cc +++ b/lite/backends/arm/math/pooling.cc @@ -1347,7 +1347,7 @@ void pooling2x2s2p1_max(const float* din, [cnt_num] "+r"(cnt_num) : [vzero] "w"(vzero) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v8"); -#else +#else asm volatile( P2x2S2_INIT P2x2S2P1_MAX P2x2S2P0_MAX "2: \n" /* end */ : [dr0] "+r"(dr0), diff --git a/lite/utils/cv/image_resize.cc b/lite/utils/cv/image_resize.cc index 8b1638b5665bf625c1335da760d4df843618b080..1a971bf78b50f149b9d1ce781d943d906ea902e4 100644 --- a/lite/utils/cv/image_resize.cc +++ b/lite/utils/cv/image_resize.cc @@ -678,15 +678,9 @@ void resize(const uint8_t* src, } else if (srcFormat == NV12 || srcFormat == NV21) { nv21_resize(src, dst, srcw, srch, dstw, dsth); return; - num = 1; - int hout = static_cast(0.5 * dsth); - dsth += hout; } else if (srcFormat == BGR || srcFormat == RGB) { bgr_resize(src, dst, srcw, srch, dstw, dsth); return; - w_in = srcw * 3; - w_out = dstw * 3; - num = 3; } else if (srcFormat == BGRA || srcFormat == RGBA) { w_in = srcw * 4; w_out = dstw * 4;