Browse Source

!1714 fix out_anchors contain control out

From: @zhou_lili
Reviewed-by: @wqtshg,@zhangxiaokun9
Signed-off-by: @wqtshg
tags/v1.3.0
mindspore-ci-bot Gitee 4 years ago
parent
commit
9d564aaba6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/preprocess/multi_batch_options.cc

+ 1
- 1
ge/graph/preprocess/multi_batch_options.cc View File

@@ -335,7 +335,7 @@ Status DeleteIdentityInsertByAdapter(ComputeGraphPtr &graph) {
GE_IF_BOOL_EXEC(peer_in_anchor == nullptr, continue);
auto dst_node = peer_in_anchor->GetOwnerNode();
GE_IF_BOOL_EXEC(dst_node == nullptr, continue);
if (dst_node->GetType() == IDENTITY && dst_node->GetAllOutDataAnchors().empty()) {
if (dst_node->GetType() == IDENTITY && dst_node->GetOutDataNodes().empty()) {
GELOGI("Need to remove %s.", dst_node->GetName().c_str());
if (GraphUtils::RemoveNodeWithoutRelink(graph, dst_node) != GRAPH_SUCCESS) {
REPORT_CALL_ERROR("E19999", "Remove node:%s(%s) from graph:%s failed",


Loading…
Cancel
Save