From 8ebedb7a39c0f6b88cf3ee9e59a023eff86c8d4d Mon Sep 17 00:00:00 2001 From: nihuini Date: Sat, 25 Jan 2025 15:10:36 +0800 Subject: [PATCH] w --- src/layer/loongarch/requantize_loongarch.cpp | 12 ++++++------ src/layer/mips/requantize_mips.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/layer/loongarch/requantize_loongarch.cpp b/src/layer/loongarch/requantize_loongarch.cpp index 7a0e4e5f7e3..9b7f2130cf4 100644 --- a/src/layer/loongarch/requantize_loongarch.cpp +++ b/src/layer/loongarch/requantize_loongarch.cpp @@ -108,7 +108,7 @@ static void requantize_relu(const int* intptr, signed char* ptr, const Mat& scal { __m128 _v = __lsx_vffint_s_w(__lsx_vld(intptr, 0)); _v = __lsx_vfmul_s(_v, _scale0); - v16i8 v = (v16i8)float2int8relu(_v, _v); + v16i8 v = (v16i8)float2int8relu(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -170,7 +170,7 @@ static void requantize_relu(const int* intptr, signed char* ptr, const Mat& scal { __m128 _v = __lsx_vffint_s_w(__lsx_vld(intptr, 0)); _v = __lsx_vfmadd_s(_v, _scale0, _bias0); - v16i8 v = (v16i8)float2int8relu(_v, _v); + v16i8 v = (v16i8)float2int8relu(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -269,7 +269,7 @@ static void requantize_leakyrelu(const int* intptr, signed char* ptr, const Mat& { __m128 _v = __lsx_vffint_s_w(__lsx_vld(intptr, 0)); _v = __lsx_vfmul_s(_v, _scale0); - v16i8 v = (v16i8)float2int8leakyrelu(_v, _v, _slope); + v16i8 v = (v16i8)float2int8leakyrelu(_v, _slope); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -331,7 +331,7 @@ static void requantize_leakyrelu(const int* intptr, signed char* ptr, const Mat& { __m128 _v = __lsx_vffint_s_w(__lsx_vld(intptr, 0)); _v = __lsx_vfmadd_s(_v, _scale0, _bias0); - v16i8 v = (v16i8)float2int8leakyrelu(_v, _v, _slope); + v16i8 v = (v16i8)float2int8leakyrelu(_v, _slope); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -436,7 +436,7 @@ static void requantize(const int* intptr, signed char* ptr, const Mat& scale_in_ _v = __lsx_vfmul_s(_v, _scale_in0); _v = activation_ps(_v, activation_type, activation_params); _v = __lsx_vfmul_s(_v, _scale_out0); - v16i8 v = (v16i8)float2int8(_v, _v); + v16i8 v = (v16i8)float2int8(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -498,7 +498,7 @@ static void requantize(const int* intptr, signed char* ptr, const Mat& scale_in_ _v = __lsx_vfmadd_s(_v, _scale_in0, _bias0); _v = activation_ps(_v, activation_type, activation_params); _v = __lsx_vfmul_s(_v, _scale_out0); - v16i8 v = (v16i8)float2int8(_v, _v); + v16i8 v = (v16i8)float2int8(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; diff --git a/src/layer/mips/requantize_mips.cpp b/src/layer/mips/requantize_mips.cpp index 620247bebad..9c502362d3a 100644 --- a/src/layer/mips/requantize_mips.cpp +++ b/src/layer/mips/requantize_mips.cpp @@ -108,7 +108,7 @@ static void requantize_relu(const int* intptr, signed char* ptr, const Mat& scal { v4f32 _v = (v4f32)__msa_ffint_s_w(__msa_ld_w(intptr, 0)); _v = __msa_fmul_w(_v, _scale0); - v16i8 v = float2int8relu(_v, _v); + v16i8 v = float2int8relu(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -170,7 +170,7 @@ static void requantize_relu(const int* intptr, signed char* ptr, const Mat& scal { v4f32 _v = (v4f32)__msa_ffint_s_w(__msa_ld_w(intptr, 0)); _v = __msa_fmadd_w(_bias0, _v, _scale0); - v16i8 v = float2int8relu(_v, _v); + v16i8 v = float2int8relu(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -269,7 +269,7 @@ static void requantize_leakyrelu(const int* intptr, signed char* ptr, const Mat& { v4f32 _v = (v4f32)__msa_ffint_s_w(__msa_ld_w(intptr, 0)); _v = __msa_fmul_w(_v, _scale0); - v16i8 v = float2int8leakyrelu(_v, _v, _slope); + v16i8 v = float2int8leakyrelu(_v, _slope); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -331,7 +331,7 @@ static void requantize_leakyrelu(const int* intptr, signed char* ptr, const Mat& { v4f32 _v = (v4f32)__msa_ffint_s_w(__msa_ld_w(intptr, 0)); _v = __msa_fmadd_w(_bias0, _v, _scale0); - v16i8 v = float2int8leakyrelu(_v, _v, _slope); + v16i8 v = float2int8leakyrelu(_v, _slope); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -436,7 +436,7 @@ static void requantize(const int* intptr, signed char* ptr, const Mat& scale_in_ _v = __msa_fmul_w(_v, _scale_in0); _v = activation_ps(_v, activation_type, activation_params); _v = __msa_fmul_w(_v, _scale_out0); - v16i8 v = float2int8(_v, _v); + v16i8 v = float2int8(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2]; @@ -498,7 +498,7 @@ static void requantize(const int* intptr, signed char* ptr, const Mat& scale_in_ _v = __msa_fmadd_w(_bias0, _v, _scale_in0); _v = activation_ps(_v, activation_type, activation_params); _v = __msa_fmul_w(_v, _scale_out0); - v16i8 v = float2int8(_v, _v); + v16i8 v = float2int8(_v); ptr[0] = v[0]; ptr[1] = v[1]; ptr[2] = v[2];