From bd5a59cb134a4c90bb71cc84ec0a904001149b72 Mon Sep 17 00:00:00 2001 From: zhangxiaokun Date: Wed, 6 Jan 2021 10:15:52 +0800 Subject: [PATCH] Delete unused-const-variable --- ge/graph/build/memory/graph_mem_assigner.cc | 2 +- ge/graph/load/new_model_manager/task_info/hccl_task_info.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/graph/build/memory/graph_mem_assigner.cc b/ge/graph/build/memory/graph_mem_assigner.cc index 0213e767..e16de3ce 100755 --- a/ge/graph/build/memory/graph_mem_assigner.cc +++ b/ge/graph/build/memory/graph_mem_assigner.cc @@ -919,7 +919,7 @@ Status GraphMemoryAssigner::ReAssignAtomicMemory(bool is_loop_graph) { auto mem_iter = memory_offset_.find(RT_MEMORY_HBM); if (mem_iter == memory_offset_.end()) { std::string error = "Memory offset does not have memory type" + FmtToStr(RT_MEMORY_HBM); - GE_ERRORLOG_AND_ERRORMSG(FAILED, error.c_str()); + GE_ERRORLOG_AND_ERRORMSG(FAILED, error.c_str()); return FAILED; } diff --git a/ge/graph/load/new_model_manager/task_info/hccl_task_info.cc b/ge/graph/load/new_model_manager/task_info/hccl_task_info.cc index f588ae7d..7b18a9a3 100644 --- a/ge/graph/load/new_model_manager/task_info/hccl_task_info.cc +++ b/ge/graph/load/new_model_manager/task_info/hccl_task_info.cc @@ -289,8 +289,8 @@ Status HcclTaskInfo::SetAddrs(const std::shared_ptr &op_desc, kernel_hccl_infos[i].opType = op_type; } davinci_model_->DisableZeroCopy(input_data_addr); - return SUCCESS; } + return SUCCESS; } void HcclTaskInfo::TransToGETaskInfo(GETaskInfo &ge_task) { ge_task.id = id_;