From 8963e822bb8ebbcba023b996b375f704f712acef Mon Sep 17 00:00:00 2001 From: wxl Date: Sat, 5 Dec 2020 15:57:36 +0800 Subject: [PATCH] single op add check json file --- ge/offline/single_op_parser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/offline/single_op_parser.cc b/ge/offline/single_op_parser.cc index 4e05ff88..13641602 100644 --- a/ge/offline/single_op_parser.cc +++ b/ge/offline/single_op_parser.cc @@ -363,12 +363,12 @@ Status ValidateSingleOpJson() { for (const auto &r : GetJsonTensorVerifyResult()) { if (!r.is_format_valid) { string err_str = "json tensor format invalid.Tensor name is [" + r.tensor_name + "], format is " + r.format; - GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, err_str); + GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, err_str.c_str()); return PARAM_INVALID; } if (!r.is_dtyep_valid) { string err_str = "json tensor datatype invalid.Tensor name is [" + r.tensor_name + "], datatype is " + r.dtype; - GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, err_str); + GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, err_str.c_str()); return PARAM_INVALID; } }