Browse Source

single op add check json file

pull/532/head
wxl 5 years ago
parent
commit
8963e822bb
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

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


Loading…
Cancel
Save