From 80d50413114a70e9cf5b4c28f645180eda93477b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 4 Jan 2021 19:41:57 +0800 Subject: [PATCH] Fix bug of building dynamic shape graph. --- ge/graph/build/graph_builder.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ge/graph/build/graph_builder.cc b/ge/graph/build/graph_builder.cc index dce40c3e..e42b5a71 100644 --- a/ge/graph/build/graph_builder.cc +++ b/ge/graph/build/graph_builder.cc @@ -198,8 +198,10 @@ Status GraphBuilder::Build(ComputeGraphPtr &comp_graph, std::vectorGetGraphUnknownFlag()) { + bool is_dynamic_shape = false; + // To be compatible with the old process, do not verify the return value temporarily. + (void)AttrUtils::GetBool(comp_graph, ATTR_NAME_DYNAMIC_SHAPE_PARTITIONED, is_dynamic_shape); + if (is_dynamic_shape || comp_graph->GetGraphUnknownFlag()) { GE_CHK_STATUS_RET( BuildForDynamicShapeGraph(comp_graph, subgraph_ptr_list, ge_root_model_ptr, ge_model_ptr, session_id), "Build for dynamic shape graph failed.");