diff --git a/ge/graph/passes/hccl_memcpy_pass.cc b/ge/graph/passes/hccl_memcpy_pass.cc index 8471b1d8..666611c8 100755 --- a/ge/graph/passes/hccl_memcpy_pass.cc +++ b/ge/graph/passes/hccl_memcpy_pass.cc @@ -160,12 +160,12 @@ Status HcclMemcpyPass::P2pmemInputProcess(const ComputeGraphPtr &graph, const No return SUCCESS; } - for (int index = 0; index < input_memory_types.size() && index < op_desc->GetInputsSize(); index++) { + for (uint32_t index = 0; index < input_memory_types.size() && index < op_desc->GetInputsSize(); index++) { if (input_memory_types[index] != RT_MEMORY_P2P_DDR) { continue; } - auto hccl_in_anchor = GetInDataAnchor(index); + auto hccl_in_anchor = node->GetInDataAnchor(index); if (hccl_in_anchor == nullptr) { continue; } diff --git a/ge/graph/passes/hccl_memcpy_pass.h b/ge/graph/passes/hccl_memcpy_pass.h index 81de2e80..1e946fa7 100755 --- a/ge/graph/passes/hccl_memcpy_pass.h +++ b/ge/graph/passes/hccl_memcpy_pass.h @@ -43,7 +43,7 @@ class HcclMemcpyPass : public GraphPass { Status P2pmemInputProcess(const ComputeGraphPtr &graph, const NodePtr node); - bool HcclMemcpyPass::IsDataNode(const std::string& node_type); + bool IsDataNode(const std::string& node_type); std::unordered_map node_num_map_; };