Browse Source

single op add check json file

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

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

@@ -360,7 +360,7 @@ bool SingleOpParser::Validate(const SingleOpDesc &op_desc) {
} }


Status ValidateSingleOpJson() { Status ValidateSingleOpJson() {
for (const auto &r : GetJsonTensorVerifyResult()) {
for (const auto &r : SingleOpParser::GetJsonTensorVerifyResult()) {
if (!r.is_format_valid) { if (!r.is_format_valid) {
string err_str = "json tensor format invalid.Tensor name is [" + r.tensor_name + "], format is " + r.format; 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.c_str()); GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, err_str.c_str());


Loading…
Cancel
Save