Browse Source

fix out_anchors contain control out

tags/v1.3.0
zhou_lili 4 years ago
parent
commit
de3bbe6af7
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