Browse Source

Feature: Get default from ge ir graph while no user input shape

tags/v1.2.0
l00444296 4 years ago
parent
commit
07800ed03c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ge/ir_build/ge_ir_build.cc

+ 2
- 1
ge/ir_build/ge_ir_build.cc View File

@@ -334,7 +334,8 @@ graphStatus Impl::Init(const Graph &graph, const std::map<std::string, std::stri

string input_shape;
if (options_.find("input_shape") == options_.end()) {
GE_CHK_BOOL_RET_STATUS_NOLOG(GetDefaultInputShape(graph, input_shape), GRAPH_PARAM_INVALID);
GE_CHK_BOOL_EXEC(GetDefaultInputShape(graph, input_shape) == ge::SUCCESS, return ge::GRAPH_PARAM_INVALID,
"Get defaule data op shape from graph failed!");
} else {
input_shape = options_["input_shape"];
}


Loading…
Cancel
Save