Browse Source

Delete unused-const-variable

tags/v1.2.0
zhangxiaokun 3 years ago
parent
commit
bd5a59cb13
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      ge/graph/build/memory/graph_mem_assigner.cc
  2. +1
    -1
      ge/graph/load/new_model_manager/task_info/hccl_task_info.cc

+ 1
- 1
ge/graph/build/memory/graph_mem_assigner.cc View File

@@ -919,7 +919,7 @@ Status GraphMemoryAssigner::ReAssignAtomicMemory(bool is_loop_graph) {
auto mem_iter = memory_offset_.find(RT_MEMORY_HBM); auto mem_iter = memory_offset_.find(RT_MEMORY_HBM);
if (mem_iter == memory_offset_.end()) { if (mem_iter == memory_offset_.end()) {
std::string error = "Memory offset does not have memory type" + FmtToStr(RT_MEMORY_HBM); 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; return FAILED;
} }




+ 1
- 1
ge/graph/load/new_model_manager/task_info/hccl_task_info.cc View File

@@ -289,8 +289,8 @@ Status HcclTaskInfo::SetAddrs(const std::shared_ptr<OpDesc> &op_desc,
kernel_hccl_infos[i].opType = op_type; kernel_hccl_infos[i].opType = op_type;
} }
davinci_model_->DisableZeroCopy(input_data_addr); davinci_model_->DisableZeroCopy(input_data_addr);
return SUCCESS;
} }
return SUCCESS;
} }
void HcclTaskInfo::TransToGETaskInfo(GETaskInfo &ge_task) { void HcclTaskInfo::TransToGETaskInfo(GETaskInfo &ge_task) {
ge_task.id = id_; ge_task.id = id_;


Loading…
Cancel
Save