From 39dddc95a3c960f363cfe3c598897705462d7aef Mon Sep 17 00:00:00 2001 From: zhaozhixuan Date: Wed, 19 May 2021 14:46:47 +0800 Subject: [PATCH] Update error report. --- ge/graph/manager/graph_manager.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ge/graph/manager/graph_manager.cc b/ge/graph/manager/graph_manager.cc index 465ae749..63160dfb 100755 --- a/ge/graph/manager/graph_manager.cc +++ b/ge/graph/manager/graph_manager.cc @@ -493,9 +493,10 @@ Status GraphManager::ModifyDataIndex(const Graph &graph, const std::mapsecond.empty()) { // 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({"parameter", "value", "reason"}), - std::vector({"--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({"situation", "reason"}), + std::vector({situation, reason})); GELOGE(GRAPH_PARAM_INVALID, "[COMP][AddGraph]Input data index is invalid when data shape range enabled."); return GRAPH_PARAM_INVALID; }