From 52df3661c70d734ae3a72f8dc295b2987c952ede Mon Sep 17 00:00:00 2001 From: zhaozhixuan Date: Sat, 15 May 2021 16:28:42 +0800 Subject: [PATCH] Add shape range check. --- ge/graph/manager/graph_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/graph/manager/graph_manager.cc b/ge/graph/manager/graph_manager.cc index 02a500fe..241ca0b2 100755 --- a/ge/graph/manager/graph_manager.cc +++ b/ge/graph/manager/graph_manager.cc @@ -490,7 +490,7 @@ Status GraphManager::ModifyDataIndex(const Graph &graph, const std::mapsecond.empty()) { + if (iter != graph_option.end() && !iter->second.empty()) { // If data inputs shape range is set, user must set valid data index. REPORT_INNER_ERROR("E19999", "Input data index is invalid when data shape range enabled, please check!"); GELOGE(GRAPH_PARAM_INVALID, "[COMP][AddGraph]Input data index is invalid when data shape range enabled.");