From de3bbe6af782c077baabd56544f7d485a3ac794a Mon Sep 17 00:00:00 2001 From: zhou_lili Date: Mon, 31 May 2021 14:36:29 +0800 Subject: [PATCH] fix out_anchors contain control out --- ge/graph/preprocess/multi_batch_options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/graph/preprocess/multi_batch_options.cc b/ge/graph/preprocess/multi_batch_options.cc index 6cb57e6b..6ce6ff67 100644 --- a/ge/graph/preprocess/multi_batch_options.cc +++ b/ge/graph/preprocess/multi_batch_options.cc @@ -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",