From 8633ceb39cc284f6d7b01371f19c1dcce28ea6ca Mon Sep 17 00:00:00 2001 From: liujiangtao Date: Tue, 16 Aug 2022 17:36:57 +0800 Subject: [PATCH] modify fixed graphName --- parser/tensorflow/tensorflow_parser.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parser/tensorflow/tensorflow_parser.cc b/parser/tensorflow/tensorflow_parser.cc index 94a9bf3..3f6d20e 100644 --- a/parser/tensorflow/tensorflow_parser.cc +++ b/parser/tensorflow/tensorflow_parser.cc @@ -101,7 +101,8 @@ graphStatus aclgrphParseTensorFlow(const char *model_file, ge::Graph &graph) { } // Create an empty computegraph - ge::ComputeGraphPtr compute_graph = ge::parser::MakeShared("tmpGraph"); + ge::ComputeGraphPtr compute_graph = ge::parser::MakeShared("tmpGraph" + + std::to_string(ge::parser::GetCurrentTimestamp())); if (compute_graph == nullptr) { REPORT_CALL_ERROR("E19999", "New ComputeGraph failed"); GELOGE(FAILED, "Create ComputeGraph fail."); @@ -154,7 +155,8 @@ graphStatus aclgrphParseTensorFlow(const char *model_file, const std::map(graph_name); if (compute_graph == nullptr) { REPORT_CALL_ERROR("E19999", "New ComputeGraph failed");