From e6110f170be3c8f3dcf2ef3065db4e494327e4e4 Mon Sep 17 00:00:00 2001 From: y00500818 Date: Mon, 1 Mar 2021 16:42:15 +0800 Subject: [PATCH] del thread of Shrink --- ge/graph/load/model_manager/davinci_model.cc | 6 +----- ge/graph/load/model_manager/davinci_model.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ge/graph/load/model_manager/davinci_model.cc b/ge/graph/load/model_manager/davinci_model.cc index 5842c181..36d5c95a 100755 --- a/ge/graph/load/model_manager/davinci_model.cc +++ b/ge/graph/load/model_manager/davinci_model.cc @@ -765,7 +765,7 @@ Status DavinciModel::Init(void *dev_ptr, size_t mem_size, void *weight_ptr, size } } - CREATE_STD_THREAD(shrink_id_, &DavinciModel::Shrink, this); + Shrink(); return SUCCESS; } @@ -2722,10 +2722,6 @@ Status DavinciModel::DestroyThread() { thread_id_.join(); } - if (shrink_id_.joinable()) { - shrink_id_.join(); - } - return SUCCESS; } diff --git a/ge/graph/load/model_manager/davinci_model.h b/ge/graph/load/model_manager/davinci_model.h index cfd90e04..c99fb7ec 100755 --- a/ge/graph/load/model_manager/davinci_model.h +++ b/ge/graph/load/model_manager/davinci_model.h @@ -906,7 +906,6 @@ class DavinciModel { vector output_memory_size_list_; thread thread_id_; - thread shrink_id_; shared_ptr listener_;