fix hcom parallel bug

This commit is contained in:
gukecai 2020-12-08 15:06:22 +08:00
parent 8848def671
commit d9820d8df2
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }