From a1fd6d59802d5f9174ff49a54213454d424f4645 Mon Sep 17 00:00:00 2001 From: zhuyinlin <1085905529@qq.com> Date: Mon, 16 Jun 2025 17:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=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> --- .../neural_network_runtime/lite_graph_to_hdi_model_v1_0.cpp | 4 +--- .../neural_network_runtime/lite_graph_to_hdi_model_v2_0.cpp | 4 +--- .../neural_network_runtime/lite_graph_to_hdi_model_v2_1.cpp | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v1_0.cpp b/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v1_0.cpp index dca43ff..855d263 100644 --- a/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v1_0.cpp +++ b/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v1_0.cpp @@ -968,7 +968,7 @@ OHOS::HDI::Nnrt::V1_0::SharedBuffer Copy_MindIR_Tensor_Data_To_HDIBuffer(const T const OHOS::HDI::Nnrt::V1_0::SharedBuffer &bufferTemplete, uint8_t *mmapPtr, unsigned int offset) { if (tensor == nullptr) { - LOGE(""); + LOGE("MindIR_LiteGraph_To_Model v1 tensor is nullptr."); return {-1, 0, offset, 0}; } if (mmapPtr == nullptr) { @@ -1005,8 +1005,6 @@ OHOS::HDI::Nnrt::V1_0::Model *LiteGraph_To_HDIModel(const mindspore::lite::LiteG return nullptr; } - LOGI("MindIR_LiteGraph_To_Model begin"); - std::vector nodes; std::vector allTensors; std::vector subGraph; diff --git a/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_0.cpp b/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_0.cpp index e34b571..5c5d21b 100644 --- a/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_0.cpp +++ b/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_0.cpp @@ -969,7 +969,7 @@ OHOS::HDI::Nnrt::V2_0::SharedBuffer Copy_MindIR_Tensor_Data_To_HDIBuffer(const T const OHOS::HDI::Nnrt::V2_0::SharedBuffer &bufferTemplete, uint8_t *mmapPtr, unsigned int offset) { if (tensor == nullptr) { - LOGE(""); + LOGE("MindIR_LiteGraph_To_Model v2 tensor is nullptr."); return {-1, 0, offset, 0}; } if (mmapPtr == nullptr) { @@ -1006,8 +1006,6 @@ OHOS::HDI::Nnrt::V2_0::Model *LiteGraph_To_HDIModel(const mindspore::lite::LiteG return nullptr; } - LOGI("MindIR_LiteGraph_To_Model begin"); - std::vector nodes; std::vector allTensors; std::vector subGraph; diff --git a/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_1.cpp b/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_1.cpp index d58b4ea..86ae749 100644 --- a/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_1.cpp +++ b/frameworks/native/neural_network_runtime/lite_graph_to_hdi_model_v2_1.cpp @@ -1773,7 +1773,7 @@ OHOS::HDI::Nnrt::V2_1::SharedBuffer Copy_MindIR_Tensor_Data_To_HDIBuffer(const T const OHOS::HDI::Nnrt::V2_1::SharedBuffer &bufferTemplete, uint8_t *mmapPtr, unsigned int offset) { if (tensor == nullptr) { - LOGE(""); + LOGE("MindIR_LiteGraph_To_Model v2_1 tensor is nullptr."); return {-1, 0, offset, 0}; } if (mmapPtr == nullptr) { @@ -1810,8 +1810,6 @@ OHOS::HDI::Nnrt::V2_1::Model *LiteGraph_To_HDIModel(const mindspore::lite::LiteG return nullptr; } - LOGI("MindIR_LiteGraph_To_Model begin"); - std::vector nodes; std::vector allTensors; std::vector subGraph; -- Gitee