From f3690f4f2cfa09743ae1ea57ac152a89b92b9bc8 Mon Sep 17 00:00:00 2001 From: wxl Date: Sat, 5 Dec 2020 19:02:03 +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 38374f32..9e4c9034 100644 --- a/ge/offline/single_op_parser.cc +++ b/ge/offline/single_op_parser.cc @@ -366,13 +366,13 @@ Status ValidateSingleOpJson() { GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, err_str.c_str()); return PARAM_INVALID; } - if (!r.is_dtyep_valid) { + if (!r.is_dtype_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.c_str()); return PARAM_INVALID; } } - ClearJsonTensorVerifyResult(); + SingleOpParser::ClearJsonTensorVerifyResult(); return SUCCESS; }