Browse Source

Description:Support model_exit in GE

Team:HISI_SW
Feature or Bugfix:Feature
pull/63/head
l00444296 5 years ago
parent
commit
8ac6749131
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      parser/common/acl_graph_parser_util.cc

+ 2
- 2
parser/common/acl_graph_parser_util.cc View File

@@ -182,7 +182,7 @@ bool ParseSingleLine(const std::string &line, std::map<std::string, std::string>
if (!temp.empty()) {
std::string::size_type pos = temp.find_first_of(delimiter);
if (pos == std::string::npos) {
GELOGE(PARAM_INVALID, "Incorrect line [%s], it must include [%s].Perhaps you use illegal chinese symbol",
GELOGE(ge::PARAM_INVALID, "Incorrect line [%s], it must include [%s].Perhaps you use illegal chinese symbol",
line.c_str(), delimiter.c_str());
return false;
}
@@ -190,7 +190,7 @@ bool ParseSingleLine(const std::string &line, std::map<std::string, std::string>
std::string map_key = TrimConf(temp.substr(0, pos));
std::string value = TrimConf(temp.substr(pos + 1));
if (map_key.empty() || value.empty()) {
GELOGE(PARAM_INVALID, "Map_key or value empty. %s", line.c_str());
GELOGE(ge::PARAM_INVALID, "Map_key or value empty. %s", line.c_str());
return false;
}



Loading…
Cancel
Save