Browse Source

single op add check json file

pull/532/head
wxl 4 years ago
parent
commit
f3690f4f2c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/offline/single_op_parser.cc

+ 2
- 2
ge/offline/single_op_parser.cc View File

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



Loading…
Cancel
Save