From 18844ce4de1be6da16500600d172a10b6b569b5a Mon Sep 17 00:00:00 2001 From: nihui Date: Thu, 23 Jan 2025 05:15:32 +0000 Subject: [PATCH] w --- src/layer/arm/dequantize_arm_asimdhp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layer/arm/dequantize_arm_asimdhp.cpp b/src/layer/arm/dequantize_arm_asimdhp.cpp index 044b5d4b0d4..f193ad5ece1 100644 --- a/src/layer/arm/dequantize_arm_asimdhp.cpp +++ b/src/layer/arm/dequantize_arm_asimdhp.cpp @@ -70,7 +70,7 @@ static void dequantize_fp16s(const int* intptr, __fp16* ptr, const Mat& scale_da } for (; i < size; i++) { - *ptr = (__fp16*)(*intptr * scale); + *ptr = (__fp16)(*intptr * scale); intptr++; ptr++; } @@ -115,7 +115,7 @@ static void dequantize_fp16s(const int* intptr, __fp16* ptr, const Mat& scale_da } for (; i < size; i++) { - *ptr = (__fp16*)(*intptr * scale + bias); + *ptr = (__fp16)(*intptr * scale + bias); intptr++; ptr++; }