From e8fa455ae8195332b7c1b964867304bf46ef47b5 Mon Sep 17 00:00:00 2001 From: liusiyang Date: Thu, 29 Oct 2026 15:56:43 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=88=86=E7=B1=BB=E4=B8=8D=E5=81=9Aso?= =?UTF-8?q?ftmax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIEngineModule/src/AIModel_Impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AIEngineModule/src/AIModel_Impl.cpp b/AIEngineModule/src/AIModel_Impl.cpp index 4c07740..a9b03d2 100644 --- a/AIEngineModule/src/AIModel_Impl.cpp +++ b/AIEngineModule/src/AIModel_Impl.cpp @@ -599,8 +599,8 @@ int AIModel_Impl::F2softmaxId(float *data, int class_num, float *fmaxScore) std::vector output(cls_num); for (int i = 0; i < output.size(); i++) { - float outi = (float)exp(data[i]) / (float)total; - output[i] = outi; + // float outi = (float)exp(data[i]) / (float)total; + output[i] = data[i]; // 不做softmax处理(模型已经做了) // output.push_back(outi); // std::cout<<"output["<