Browse Source

fix bug of dynamic shape load error

tags/v1.3.0
wxl 4 years ago
parent
commit
952581264e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/graph/passes/identity_pass.cc

+ 2
- 2
ge/graph/passes/identity_pass.cc View File

@@ -54,10 +54,10 @@ Status CheckIdentityUsable(const NodePtr &node, bool &usable) {
} }


GE_CHK_STATUS_RET(GetOriginalType(in_node, node_type), GE_CHK_STATUS_RET(GetOriginalType(in_node, node_type),
"Failed to get node type from node %s", node->GetName().c_str());
"Failed to get node type from node %s.", node->GetName().c_str());
bool need_skip = (node_type != SWITCH) && (node_type != REFSWITCH) && (node_type != SWITCHN); bool need_skip = (node_type != SWITCH) && (node_type != REFSWITCH) && (node_type != SWITCHN);
if (need_skip) { if (need_skip) {
GELOGD("skip identity %s connected to switch", node->GetName().c_str());
GELOGD("skip identity %s connected to switch.", node->GetName().c_str());
break; break;
} }
GE_CHECK_NOTNULL(node->GetOutControlAnchor()); GE_CHECK_NOTNULL(node->GetOutControlAnchor());


Loading…
Cancel
Save