From 272b16959aef165522e68a593d603d8c7abf18fa Mon Sep 17 00:00:00 2001 From: "wangwenhua1@huawei.com" Date: Mon, 16 Nov 2020 09:21:21 +0800 Subject: [PATCH] error message add --- ge/graph/preprocess/insert_op/ge_aipp_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/graph/preprocess/insert_op/ge_aipp_op.cc b/ge/graph/preprocess/insert_op/ge_aipp_op.cc index c638f783..38d1efcf 100755 --- a/ge/graph/preprocess/insert_op/ge_aipp_op.cc +++ b/ge/graph/preprocess/insert_op/ge_aipp_op.cc @@ -355,7 +355,7 @@ Status AippOp::GetAndCheckTarget(const ComputeGraphPtr &graph, int rank, NodePtr string error_msg = "The aipp parameter input_edge_idx[" + std::to_string(*edge_indexes.rbegin()) + "] should be smaller than the target input[" + std::to_string(data_node->GetOutDataNodes().size()) +"]'s outnodes."; - GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, error_msg); + GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, error_msg.c_str()); return PARAM_INVALID; } target = data_node; @@ -784,7 +784,7 @@ Status AippOp::CreateAippData(const NodePtr &aipp_node) { } if (batch_count <= 0) { string error_msg = "Batch count[" + std::to_string(batch_count) + "] is invalid, it must positive."; - GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, error_msg); + GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, error_msg_c_str()); return PARAM_INVALID; }