From d8accf5e1b9ffdabcc20d055f57ffb2216d214b2 Mon Sep 17 00:00:00 2001 From: zhangxiaokun Date: Sat, 9 Jan 2021 11:10:36 +0800 Subject: [PATCH] Fix return code --- ge/graph/passes/subgraph_const_migration_pass.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/graph/passes/subgraph_const_migration_pass.cc b/ge/graph/passes/subgraph_const_migration_pass.cc index a3e6f2e6..f131942c 100644 --- a/ge/graph/passes/subgraph_const_migration_pass.cc +++ b/ge/graph/passes/subgraph_const_migration_pass.cc @@ -151,7 +151,7 @@ Status SubgraphConstMigrationPass::ClassifyGraphNodes(const ComputeGraphPtr &gra if (node->GetType() == DATA) { uint32_t parent_index = kInvalidParent; if (!AttrUtils::GetInt(node->GetOpDesc(), ATTR_NAME_PARENT_NODE_INDEX, parent_index)) { - return false; + return FAILED; } data_nodes[parent_index] = node;