Browse Source

Fix return code

tags/v1.2.0
zhangxiaokun 4 years ago
parent
commit
d8accf5e1b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/passes/subgraph_const_migration_pass.cc

+ 1
- 1
ge/graph/passes/subgraph_const_migration_pass.cc View File

@@ -151,7 +151,7 @@ Status SubgraphConstMigrationPass::ClassifyGraphNodes(const ComputeGraphPtr &gra
if (node->GetType() == DATA) { if (node->GetType() == DATA) {
uint32_t parent_index = kInvalidParent; uint32_t parent_index = kInvalidParent;
if (!AttrUtils::GetInt(node->GetOpDesc(), ATTR_NAME_PARENT_NODE_INDEX, parent_index)) { if (!AttrUtils::GetInt(node->GetOpDesc(), ATTR_NAME_PARENT_NODE_INDEX, parent_index)) {
return false;
return FAILED;
} }


data_nodes[parent_index] = node; data_nodes[parent_index] = node;


Loading…
Cancel
Save