Browse Source

log optimize

pull/1215/head
liyihan2@huawei.com 4 years ago
parent
commit
214c2a6d12
2 changed files with 7 additions and 7 deletions
  1. +4
    -4
      ge/analyzer/analyzer.cc
  2. +3
    -3
      ge/common/cust_aicpu_kernel_store.cc

+ 4
- 4
ge/analyzer/analyzer.cc View File

@@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() {
// Initialize file
string real_path = RealPath(kFilePath.c_str());
if (real_path.empty()) {
GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is invalid!");
GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is empty, path invalid!");
return FAILED;
}
json_file_name_ = real_path + "/" + kAnalyzeFile;
@@ -200,7 +200,7 @@ ge::Status Analyzer::CreateAnalyzerFile() {
}

ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_id) {
GELOGD("start to save analyze file!");
GELOGD("start to save analyzer file!");

auto graph_info = GetJsonObject(session_id, graph_id);
GE_CHECK_NOTNULL(graph_info);
@@ -229,7 +229,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_
}

ge::Status Analyzer::DoAnalyze(DataInfo &data_info) {
GELOGD("start to do analyzer!");
GELOGD("start to do analyzer process!");

auto pnode = data_info.node_ptr;
GE_CHECK_NOTNULL(pnode);
@@ -314,4 +314,4 @@ void Analyzer::GraphInfoToJson(json& j, const GraphInfo &graph_info) {
}
j[kOp] = json_op_infos;
}
} // namespace ge
} //namespace ge

+ 3
- 3
ge/common/cust_aicpu_kernel_store.cc View File

@@ -25,7 +25,7 @@ void CustAICPUKernelStore::AddCustAICPUKernel(const CustAICPUKernelPtr &kernel)
}

void CustAICPUKernelStore::LoadCustAICPUKernelBinToOpDesc(const std::shared_ptr<ge::OpDesc> &op_desc) const {
GELOGD("LoadCustAICPUKernelBinToOpDesc in");
GELOGD("LoadCustAICPUKernelBinToOpDesc in.");
if (op_desc != nullptr) {
auto kernel_bin = FindKernel(op_desc->GetName());
if (kernel_bin != nullptr) {
@@ -34,6 +34,6 @@ void CustAICPUKernelStore::LoadCustAICPUKernelBinToOpDesc(const std::shared_ptr<
GELOGI("Load cust aicpu kernel:%s, %zu", kernel_bin->GetName().c_str(), kernel_bin->GetBinDataSize());
}
}
GELOGD("LoadCustAICPUKernelBinToOpDesc success");
GELOGD("LoadCustAICPUKernelBinToOpDesc success.");
}
} // namespace ge
} //namespace ge

Loading…
Cancel
Save