Browse Source

Pre Merge pull request !1168 from 陈叶朦/master

pull/1168/MERGE
陈叶朦 Gitee 4 years ago
parent
commit
6bc6e422b5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      ge/graph/passes/next_iteration_pass.cc

+ 4
- 2
ge/graph/passes/next_iteration_pass.cc View File

@@ -101,7 +101,8 @@ Status NextIterationPass::FindWhileGroups() {
const std::string &frame_name = loop_group_iter.first;
for (const auto &enter_node : loop_group_iter.second->enter_nodes) {
for (const auto &out_node : enter_node->GetOutAllNodes()) {
const string &type = out_node->GetType();
std::string type;
GE_CHK_STATUS_RET(GetOriginalType(out_node, type), "Get node type failed.");
if ((type != MERGE) && (type != REFMERGE)) {
continue;
}
@@ -310,7 +311,8 @@ Status NextIterationPass::FindTargetNode(const NodePtr &node, const std::string
}

for (const auto &tmp_node : nodes) {
const std::string type = tmp_node->GetType();
std::string type;
GE_CHK_STATUS_RET(GetOriginalType(tmp_node, type), "Get node type failed.");
if ((target_type == LOOPCOND) && (type == target_type)) {
target_node = tmp_node;
break;


Loading…
Cancel
Save