diff --git a/parser/common/acl_graph_parser_util.cc b/parser/common/acl_graph_parser_util.cc index 5d10bc9..acd82a8 100644 --- a/parser/common/acl_graph_parser_util.cc +++ b/parser/common/acl_graph_parser_util.cc @@ -598,6 +598,19 @@ domi::Status AclGrphParseUtil::CheckOptions(const std::map &parser_params, string &graph_name) { GELOGI("Parse graph user options start."); + ge::GetParserContext().input_nodes_format_map.clear(); + ge::GetParserContext().output_formats.clear(); + ge::GetParserContext().user_input_dims.clear(); + ge::GetParserContext().input_dims.clear(); + ge::GetParserContext().op_conf_map.clear(); + ge::GetParserContext().user_out_nodes.clear(); + ge::GetParserContext().default_out_nodes.clear(); + ge::GetParserContext().out_nodes_map.clear(); + ge::GetParserContext().user_out_tensors.clear(); + ge::GetParserContext().net_out_nodes.clear(); + ge::GetParserContext().out_tensor_names.clear(); + ge::GetParserContext().data_tensor_names.clear(); + GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(CheckOptions(parser_params) != SUCCESS, return PARAM_INVALID, "[Check][Options] Parse paragrams invalid, graph:%s.", graph_name.c_str());