Browse Source

Update error report.

pull/1668/head
zhaozhixuan 4 years ago
parent
commit
39dddc95a3
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      ge/graph/manager/graph_manager.cc

+ 4
- 3
ge/graph/manager/graph_manager.cc View File

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


Loading…
Cancel
Save