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

pull/549/head
l00444296 4 years ago
parent 261a6004fa
commit 07800ed03c

@ -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