Browse Source

common log optimize

tags/v1.3.0
liyihan2@huawei.com 3 years ago
parent
commit
b43d62078a
2 changed files with 2 additions and 4 deletions
  1. +2
    -2
      ge/engine_manager/dnnengine_manager.cc
  2. +0
    -2
      ge/graph/passes/input_output_connection_identify_pass.cc

+ 2
- 2
ge/engine_manager/dnnengine_manager.cc View File

@@ -458,8 +458,8 @@ Status DNNEngineManager::ParserEngineMessage(const json engines_json, const std:
Status DNNEngineManager::ReadJsonFile(const std::string &file_path, JsonHandle handle) { Status DNNEngineManager::ReadJsonFile(const std::string &file_path, JsonHandle handle) {
GELOGD("Begin to read json file"); GELOGD("Begin to read json file");
if (file_path.empty()) { if (file_path.empty()) {
GELOGE(FAILED, "[Check][Param]Json path is invalid");
REPORT_INNER_ERROR("E19999", "Json path is invalid");
GELOGE(FAILED, "[Check][Param]Json path is empty");
REPORT_INNER_ERROR("E19999", "Json path is empty");
return FAILED; return FAILED;
} }
nlohmann::json *json_file = reinterpret_cast<nlohmann::json *>(handle); nlohmann::json *json_file = reinterpret_cast<nlohmann::json *>(handle);


+ 0
- 2
ge/graph/passes/input_output_connection_identify_pass.cc View File

@@ -48,8 +48,6 @@ Status InputOutputConnectionIdentifyPass::Run(ComputeGraphPtr graph) {
} }


if (graph->GetParentGraph() != nullptr) { if (graph->GetParentGraph() != nullptr) {
REPORT_INNER_ERROR("E19999", "Param graph's parent graph is nullptr, "
"check invalid");
GELOGD("Current graph %s is a subgraph, skip identification of nodes that connect to input and output.", GELOGD("Current graph %s is a subgraph, skip identification of nodes that connect to input and output.",
graph->GetName().c_str()); graph->GetName().c_str());
return SUCCESS; return SUCCESS;


Loading…
Cancel
Save