Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Feb 5, 2025
1 parent 0781305 commit a43031b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layer/loongarch/quantize_loongarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/layer/mips/quantize_mips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a43031b

Please sign in to comment.