fix hcom parallel bug

pull/9643/head
gukecai 4 years ago
parent 8848def671
commit d9820d8df2

@ -827,6 +827,7 @@ void AscendStreamAssign::InsertEventHcomDependCommonBak(const NotNull<KernelGrap
// get the input which located in the lastr exe orders // get the input which located in the lastr exe orders
vector<CNodePtr> inputs_cnode = GetLastInputCnode(graph_ptr, cur_cnode_ptr); vector<CNodePtr> inputs_cnode = GetLastInputCnode(graph_ptr, cur_cnode_ptr);
if (inputs_cnode.empty()) { if (inputs_cnode.empty()) {
cnodes.emplace_back(cur_cnode_ptr);
MS_LOG(WARNING) << "Hcom op:" << AnfAlgo::GetCNodeName(cur_cnode_ptr) << " can't find inputs nodes"; MS_LOG(WARNING) << "Hcom op:" << AnfAlgo::GetCNodeName(cur_cnode_ptr) << " can't find inputs nodes";
continue; continue;
} }

Loading…
Cancel
Save