From 801980f3549f9376be9a30885dde070c94f20864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=B6=A6?= Date: Thu, 16 Jun 2022 16:49:59 +0000 Subject: [PATCH] =?UTF-8?q?!568=20fix=20repeated=20compute=20graph=20bug?= =?UTF-8?q?=20Merge=20pull=20request=20!568=20from=20=E6=B1=9F=E6=B6=A6/ge?= =?UTF-8?q?=5Fdev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parser/common/acl_graph_parser_util.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parser/common/acl_graph_parser_util.cc b/parser/common/acl_graph_parser_util.cc index 2721c01..c8a4bc3 100644 --- a/parser/common/acl_graph_parser_util.cc +++ b/parser/common/acl_graph_parser_util.cc @@ -22,6 +22,7 @@ #include #include #include +#include #include "common/string_util.h" #include "common/util.h" @@ -61,6 +62,7 @@ const std::set kSupportTensorAsOutput = { domi::CAFFE, domi::ONNX }; +std::atomic graph_name_index {}; static string GetSoPath() { Dl_info dl_info; @@ -637,7 +639,8 @@ domi::Status AclGrphParseUtil::ParseParamsBeforeGraph(const std::map