From 24c71334f4495fbd1ca9d6c6668825f5181cb698 Mon Sep 17 00:00:00 2001 From: zhuyinlin <1085905529@qq.com> Date: Sat, 24 May 2025 16:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=8B=89=E8=B5=B7=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=98=AF=E5=90=A6=E6=9C=89=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuyinlin <1085905529@qq.com> --- .../native/neural_network_core/neural_network_core.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frameworks/native/neural_network_core/neural_network_core.cpp b/frameworks/native/neural_network_core/neural_network_core.cpp index 33cd09d..63fed5c 100644 --- a/frameworks/native/neural_network_core/neural_network_core.cpp +++ b/frameworks/native/neural_network_core/neural_network_core.cpp @@ -752,9 +752,11 @@ NNRT_API OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) } NNRtServiceApi& nnrtService = NNRtServiceApi::GetInstance(); - bool retCode = nnrtService.PullUpDlliteService(); - if (!retCode) { - LOGI("OH_NNCompilation_Build failed, PullUpDlliteService failed."); + if (nnrtService.IsServiceAvaliable()) { + bool retCode = nnrtService.PullUpDlliteService(); + if (!retCode) { + LOGI("OH_NNCompilation_Build failed, PullUpDlliteService failed."); + } } configs["isExceedRamLimit"] = configContents; -- Gitee