From 633daf2db12fabf0349345f89c5334293c1814d6 Mon Sep 17 00:00:00 2001 From: zhuyinlin <1085905529@qq.com> Date: Mon, 19 May 2025 18:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=8C=E5=AE=BD=E8=B6=85?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuyinlin <1085905529@qq.com> --- .../neural_network_runtime/neural_network_runtime.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frameworks/native/neural_network_runtime/neural_network_runtime.cpp b/frameworks/native/neural_network_runtime/neural_network_runtime.cpp index 39f79d2..cb97433 100644 --- a/frameworks/native/neural_network_runtime/neural_network_runtime.cpp +++ b/frameworks/native/neural_network_runtime/neural_network_runtime.cpp @@ -566,7 +566,8 @@ NNRT_API OH_NN_ReturnCode OH_NNModel_BuildFromLiteGraph(OH_NNModel *model, const } namespace { -OH_NN_ReturnCode CheckCacheFileExtension(const std::string& content, int64_t& fileNumber, int64_t& cacheVersion, int64_t& deviceId) +OH_NN_ReturnCode CheckCacheFileExtension(const std::string& content, int64_t& fileNumber, + int64_t& cacheVersion, int64_t& deviceId) { if (!nlohmann::json::accept(content)) { LOGE("OH_NNModel_HasCache CheckCacheFile JSON parse error"); @@ -617,7 +618,8 @@ OH_NN_ReturnCode CheckCacheFileExtension(const std::string& content, int64_t& fi return OH_NN_SUCCESS; } -OH_NN_ReturnCode CheckCacheFile(const std::string& cacheInfoPath, int64_t& fileNumber, int64_t& cacheVersion, int64_t& deviceId) +OH_NN_ReturnCode CheckCacheFile(const std::string& cacheInfoPath, int64_t& fileNumber, + int64_t& cacheVersion, int64_t& deviceId) { char path[PATH_MAX]; if (realpath(cacheInfoPath.c_str(), path) == nullptr) { -- Gitee