|
|
|
@@ -309,10 +309,10 @@ domi::Status AclGrphParseUtil::ParseAclOutputNodes(const string &out_nodes) { |
|
|
|
return PARAM_INVALID; |
|
|
|
} |
|
|
|
|
|
|
|
auto iter = ge::GetParserContext().out_nodes_map.find(key_value_v[0]); |
|
|
|
const auto iter = ge::GetParserContext().out_nodes_map.find(key_value_v[0]); |
|
|
|
int32_t index = stoi(StringUtils::Trim(key_value_v[1])); |
|
|
|
GELOGD("Get output info: node[%s] and index[%d]", key_value_v[0].c_str(), index); |
|
|
|
if (iter != ge::GetParserContext().out_nodes_map.end()) { |
|
|
|
if (iter != ge::GetParserContext().out_nodes_map.cend()) { |
|
|
|
iter->second.emplace_back(index); |
|
|
|
} else { |
|
|
|
std::vector<int32_t> index_v; |
|
|
|
@@ -943,7 +943,7 @@ FMK_FUNC_HOST_VISIBILITY bool ValidateStr(const std::string &filePath, const std |
|
|
|
regex_t reg; |
|
|
|
int cflags = REG_EXTENDED | REG_NOSUB; |
|
|
|
int ret = regcomp(®, mode.c_str(), cflags); |
|
|
|
if (ret) { |
|
|
|
if (ret != 0) { |
|
|
|
regerror(ret, ®, ebuff, kMaxBuffSize); |
|
|
|
GELOGW("regcomp failed, reason: %s", ebuff); |
|
|
|
regfree(®); |
|
|
|
@@ -951,7 +951,7 @@ FMK_FUNC_HOST_VISIBILITY bool ValidateStr(const std::string &filePath, const std |
|
|
|
} |
|
|
|
|
|
|
|
ret = regexec(®, filePath.c_str(), 0, nullptr, 0); |
|
|
|
if (ret) { |
|
|
|
if (ret != 0) { |
|
|
|
regerror(ret, ®, ebuff, kMaxBuffSize); |
|
|
|
GELOGE(ge::PARAM_INVALID, "[Invoke][RegExec] failed, reason: %s", ebuff); |
|
|
|
regfree(®); |
|
|
|
|