error message add

pull/295/head
wangwenhua1@huawei.com 4 years ago
parent c756068df0
commit 6c595433be

@ -35,7 +35,7 @@ class GE_FUNC_HOST_VISIBILITY GE_FUNC_DEV_VISIBILITY TransOpUtil {
static bool CheckPrecisionLoss(const NodePtr &src_node); static bool CheckPrecisionLoss(const NodePtr &src_node);
static std::string TransopMapToString(); std::string TransopMapToString();
private: private:
TransOpUtil(); TransOpUtil();

@ -1170,8 +1170,8 @@ Status GraphPrepare::UpdateInput(const std::vector<GeTensor> &user_input) {
bool is_internal = TypeUtils::IsInternalFormat(format) || TypeUtils::IsInternalFormat(origin_format); bool is_internal = TypeUtils::IsInternalFormat(format) || TypeUtils::IsInternalFormat(origin_format);
if (is_internal) { if (is_internal) {
ErrorManager::GetInstance().ATCReportErrMessage("E19025", {"situation", "reason"}, ErrorManager::GetInstance().ATCReportErrMessage("E19025", {"situation", "reason"},
{"Input format[" + TypeUtils::FormatToSerialString(format).c_str() + "] or origin_format[" + {"Input format[" + TypeUtils::FormatToSerialString(format) + "] or origin_format[" +
TypeUtils::FormatToSerialString(origin_format).c_str() + "]", "it is not support"}); TypeUtils::FormatToSerialString(origin_format) + "]", "it is not support"});
GELOGE(PARAM_INVALID, "Input format %s or origin_format %s is not support.", GELOGE(PARAM_INVALID, "Input format %s or origin_format %s is not support.",
TypeUtils::FormatToSerialString(format).c_str(), TypeUtils::FormatToSerialString(format).c_str(),
TypeUtils::FormatToSerialString(origin_format).c_str()); TypeUtils::FormatToSerialString(origin_format).c_str());

@ -796,7 +796,7 @@ Status AippOp::CreateAippData(const NodePtr &aipp_node) {
return PARAM_INVALID; return PARAM_INVALID;
} }
if (batch_count <= 0) { 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}); ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg});
GELOGE(PARAM_INVALID, "Batch count %ld is invalid", batch_count); GELOGE(PARAM_INVALID, "Batch count %ld is invalid", batch_count);
return PARAM_INVALID; return PARAM_INVALID;

@ -304,7 +304,7 @@ Status InsertNewOpUtil::UpdateDataNodeByAipp(const ComputeGraphPtr &graph) {
for (auto &switchn : updated_switchn) { for (auto &switchn : updated_switchn) {
auto data_iter = switchn_names_to_data.find(switchn->GetName()); auto data_iter = switchn_names_to_data.find(switchn->GetName());
if (data_iter == switchn_names_to_data.end()) { 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}); ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg});
GELOGE(INTERNAL_ERROR, "Failed to find relative data node by switchn %s", switchn->GetName().c_str()); GELOGE(INTERNAL_ERROR, "Failed to find relative data node by switchn %s", switchn->GetName().c_str());
return INTERNAL_ERROR; return INTERNAL_ERROR;
@ -493,7 +493,7 @@ Status InsertNewOpUtil::UpdateDataBySwitchN(const NodePtr &switchn, const NodePt
} }
} }
if (max_index >= switchn->GetOpDesc()->GetOutputsSize()) { 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}); ErrorManager::GetInstance().ATCReportErrMessage("E10043", {"reason"}, {errormsg});
GELOGE(INTERNAL_ERROR, "No max size found from switchn node %s", switchn->GetName().c_str()); GELOGE(INTERNAL_ERROR, "No max size found from switchn node %s", switchn->GetName().c_str());
return INTERNAL_ERROR; return INTERNAL_ERROR;

Loading…
Cancel
Save