Browse Source

!370 bugfix for context clear

Merge pull request !370 from yangyongqiang/master
pull/368/MERGE
i-robot Gitee 4 years ago
parent
commit
d12da0efb6
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      parser/common/acl_graph_parser_util.cc

+ 4
- 3
parser/common/acl_graph_parser_util.cc View File

@@ -266,11 +266,12 @@ void AclGrphParseUtil::SetDefaultFormat() {

domi::Status AclGrphParseUtil::ParseAclOutputNodes(const string &out_nodes) {
try {
ge::GetParserContext().out_nodes_map.clear();
ge::GetParserContext().user_out_nodes.clear();
ge::GetParserContext().user_out_tensors.clear();
ge::GetParserContext().default_out_nodes.clear();
// parse output node
if (!out_nodes.empty()) {
ge::GetParserContext().out_nodes_map.clear();
ge::GetParserContext().user_out_nodes.clear();
ge::GetParserContext().user_out_tensors.clear();
uint32_t set_output_mode = 0;

vector<string> nodes_v = StringUtils::Split(out_nodes, ';');


Loading…
Cancel
Save