From 1c0a09673b4971e8f26682a2ec640c99f24c9311 Mon Sep 17 00:00:00 2001 From: zhuyinlin <1085905529@qq.com> Date: Fri, 27 Jun 2025 17:15:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuyinlin <1085905529@qq.com> --- frameworks/native/neural_network_runtime/nncompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/native/neural_network_runtime/nncompiler.cpp b/frameworks/native/neural_network_runtime/nncompiler.cpp index c27b313..6747227 100644 --- a/frameworks/native/neural_network_runtime/nncompiler.cpp +++ b/frameworks/native/neural_network_runtime/nncompiler.cpp @@ -455,6 +455,7 @@ OH_NN_ReturnCode NNCompiler::OnlineBuild() OH_NN_ReturnCode ret = RestoreFromCacheFile(); if (ret != OH_NN_SUCCESS) { char path[PATH_MAX]; + realpath(m_cachePath.c_str(),path); std::string cachePath = path; std::string cacheInfo = cachePath + "/" + m_extensionConfig.modelName + "cache_info.nncache"; if (std::filesystem::exists(cacheInfo)) { -- Gitee From 6b58ed7e40c1ebbd67926e256d14e04c48950656 Mon Sep 17 00:00:00 2001 From: zhuyinlin <1085905529@qq.com> Date: Fri, 27 Jun 2025 17:54:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuyinlin <1085905529@qq.com> --- frameworks/native/neural_network_runtime/nncompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/neural_network_runtime/nncompiler.cpp b/frameworks/native/neural_network_runtime/nncompiler.cpp index 6747227..0b66abf 100644 --- a/frameworks/native/neural_network_runtime/nncompiler.cpp +++ b/frameworks/native/neural_network_runtime/nncompiler.cpp @@ -455,7 +455,7 @@ OH_NN_ReturnCode NNCompiler::OnlineBuild() OH_NN_ReturnCode ret = RestoreFromCacheFile(); if (ret != OH_NN_SUCCESS) { char path[PATH_MAX]; - realpath(m_cachePath.c_str(),path); + realpath(m_cachePath.c_str(), path); std::string cachePath = path; std::string cacheInfo = cachePath + "/" + m_extensionConfig.modelName + "cache_info.nncache"; if (std::filesystem::exists(cacheInfo)) { -- Gitee