From 6c595433be71b820c8947f618931cac25138a435 Mon Sep 17 00:00:00 2001 From: "wangwenhua1@huawei.com" Date: Fri, 13 Nov 2020 18:53:55 +0800 Subject: [PATCH] error message add --- ge/graph/common/transop_util.h | 2 +- ge/graph/preprocess/graph_preprocess.cc | 4 ++-- ge/graph/preprocess/insert_op/ge_aipp_op.cc | 2 +- ge/graph/preprocess/insert_op/util_insert_aipp_op.cc | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ge/graph/common/transop_util.h b/ge/graph/common/transop_util.h index 3332e1fb..6284f754 100644 --- a/ge/graph/common/transop_util.h +++ b/ge/graph/common/transop_util.h @@ -35,7 +35,7 @@ class GE_FUNC_HOST_VISIBILITY GE_FUNC_DEV_VISIBILITY TransOpUtil { static bool CheckPrecisionLoss(const NodePtr &src_node); - static std::string TransopMapToString(); + std::string TransopMapToString(); private: TransOpUtil(); diff --git a/ge/graph/preprocess/graph_preprocess.cc b/ge/graph/preprocess/graph_preprocess.cc index 2d708035..041d2227 100644 --- a/ge/graph/preprocess/graph_preprocess.cc +++ b/ge/graph/preprocess/graph_preprocess.cc @@ -1170,8 +1170,8 @@ Status GraphPrepare::UpdateInput(const std::vector &user_input) { bool is_internal = TypeUtils::IsInternalFormat(format) || TypeUtils::IsInternalFormat(origin_format); if (is_internal) { ErrorManager::GetInstance().ATCReportErrMessage("E19025", {"situation", "reason"}, - {"Input format[" + TypeUtils::FormatToSerialString(format).c_str() + "] or origin_format[" + - TypeUtils::FormatToSerialString(origin_format).c_str() + "]", "it is not support"}); + {"Input format[" + TypeUtils::FormatToSerialString(format) + "] or origin_format[" + + TypeUtils::FormatToSerialString(origin_format) + "]", "it is not support"}); GELOGE(PARAM_INVALID, "Input format %s or origin_format %s is not support.", TypeUtils::FormatToSerialString(format).c_str(), TypeUtils::FormatToSerialString(origin_format).c_str()); diff --git a/ge/graph/preprocess/insert_op/ge_aipp_op.cc b/ge/graph/preprocess/insert_op/ge_aipp_op.cc index 474145af..8ea1f7a9 100755 --- a/ge/graph/preprocess/insert_op/ge_aipp_op.cc +++ b/ge/graph/preprocess/insert_op/ge_aipp_op.cc @@ -796,7 +796,7 @@ Status AippOp::CreateAippData(const NodePtr &aipp_node) { return PARAM_INVALID; } if (batch_count <= 0) { - string errormsg = "Batch count[" + std::to_sting(batch_count) + "] is invalid, it must positive."; + string errormsg = "Batch count[" + std::to_string(batch_count) + "] is invalid, it must positive."; ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg}); GELOGE(PARAM_INVALID, "Batch count %ld is invalid", batch_count); return PARAM_INVALID; diff --git a/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc b/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc index 8b33885b..2f90b6a4 100755 --- a/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc +++ b/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc @@ -304,7 +304,7 @@ Status InsertNewOpUtil::UpdateDataNodeByAipp(const ComputeGraphPtr &graph) { for (auto &switchn : updated_switchn) { auto data_iter = switchn_names_to_data.find(switchn->GetName()); if (data_iter == switchn_names_to_data.end()) { - string errormesg = "Failed to find relative data node by switchn[" + switchn->GetName() + "]"; + string errormsg = "Failed to find relative data node by switchn[" + switchn->GetName() + "]"; ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg}); GELOGE(INTERNAL_ERROR, "Failed to find relative data node by switchn %s", switchn->GetName().c_str()); return INTERNAL_ERROR; @@ -493,7 +493,7 @@ Status InsertNewOpUtil::UpdateDataBySwitchN(const NodePtr &switchn, const NodePt } } if (max_index >= switchn->GetOpDesc()->GetOutputsSize()) { - string errormesg = "No max size found from switchn node[" + switchn->GetName()+ "]"; + string errormsg = "No max size found from switchn node[" + switchn->GetName()+ "]"; ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg}); GELOGE(INTERNAL_ERROR, "No max size found from switchn node %s", switchn->GetName().c_str()); return INTERNAL_ERROR;