From a43031b0a42c74e373f3ee1c912a69e88644a4ec Mon Sep 17 00:00:00 2001 From: nihuini Date: Wed, 5 Feb 2025 14:09:55 +0800 Subject: [PATCH] w --- src/layer/loongarch/quantize_loongarch.cpp | 2 +- src/layer/mips/quantize_mips.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layer/loongarch/quantize_loongarch.cpp b/src/layer/loongarch/quantize_loongarch.cpp index e46bfef925d..73c55ba6cb1 100644 --- a/src/layer/loongarch/quantize_loongarch.cpp +++ b/src/layer/loongarch/quantize_loongarch.cpp @@ -65,7 +65,7 @@ static void quantize(const float* ptr, signed char* s8ptr, const Mat& scale_data { __m128 _v = (__m128)__lsx_vld(ptr, 0); _v = __lsx_vfmul_s(_v, _scale); - v16i8 v = (v16i8)float2int8(_v, _v); + v16i8 v = (v16i8)float2int8(_v); s8ptr[0] = v[0]; s8ptr[1] = v[1]; s8ptr[2] = v[2]; diff --git a/src/layer/mips/quantize_mips.cpp b/src/layer/mips/quantize_mips.cpp index 638e5770cec..772a0d1a92d 100644 --- a/src/layer/mips/quantize_mips.cpp +++ b/src/layer/mips/quantize_mips.cpp @@ -65,7 +65,7 @@ static void quantize(const float* ptr, signed char* s8ptr, const Mat& scale_data { v4f32 _v = (v4f32)__msa_ld_w(ptr, 0); _v = __msa_fmul_w(_v, _scale); - v16i8 v = float2int8(_v, _v); + v16i8 v = float2int8(_v); s8ptr[0] = v[0]; s8ptr[1] = v[1]; s8ptr[2] = v[2];