|
@@ -493,9 +493,10 @@ Status GraphManager::ModifyDataIndex(const Graph &graph, const std::map<std::str |
|
|
auto iter = graph_option.find(OPTION_EXEC_DATA_INPUTS_SHAPE_RANGE); |
|
|
auto iter = graph_option.find(OPTION_EXEC_DATA_INPUTS_SHAPE_RANGE); |
|
|
if (iter != graph_option.end() && !iter->second.empty()) { |
|
|
if (iter != graph_option.end() && !iter->second.empty()) { |
|
|
// If data inputs shape range is set, user must set valid data index. |
|
|
// If data inputs shape range is set, user must set valid data index. |
|
|
std::string failed_reason = "Data index must be set continuous from 0 when data shape range enabled!"; |
|
|
|
|
|
REPORT_INPUT_ERROR("E10003", std::vector<std::string>({"parameter", "value", "reason"}), |
|
|
|
|
|
std::vector<std::string>({"--data_index", "-", failed_reason})); |
|
|
|
|
|
|
|
|
std::string situation = "Data op index"; |
|
|
|
|
|
std::string reason = "Data index must be set continuous from 0 when data shape range enabled!"; |
|
|
|
|
|
REPORT_INPUT_ERROR("E19025", std::vector<std::string>({"situation", "reason"}), |
|
|
|
|
|
std::vector<std::string>({situation, reason})); |
|
|
GELOGE(GRAPH_PARAM_INVALID, "[COMP][AddGraph]Input data index is invalid when data shape range enabled."); |
|
|
GELOGE(GRAPH_PARAM_INVALID, "[COMP][AddGraph]Input data index is invalid when data shape range enabled."); |
|
|
return GRAPH_PARAM_INVALID; |
|
|
return GRAPH_PARAM_INVALID; |
|
|
} |
|
|
} |
|
|