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; }