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 dca43ff90d2e23f42079b1d9798a3bd1ca8afc26..855d263f41342c295bfec2e6089f76135b0be3fb 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 e34b571386a8e90e0fe7092649e51ca1b782793a..5c5d21bd9494b65b65d293782415fe33cdee6ce8 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 d58b4eaf0ed86b79e5db34a3f57f8e3b48f28756..86ae749eb263ff9910f76c6e732ef08ab67005ed 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;