From 9ccf43d4cfaf7e2802263e9330af03fc178ce3f4 Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Thu, 31 Dec 2020 10:03:21 +0800 Subject: [PATCH] correcting resource release sequence --- ge/ge_runtime/runtime_model.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ge/ge_runtime/runtime_model.cc b/ge/ge_runtime/runtime_model.cc index 8baa5b05..b30ca1bf 100644 --- a/ge/ge_runtime/runtime_model.cc +++ b/ge/ge_runtime/runtime_model.cc @@ -32,12 +32,12 @@ const int kOffsetUnit = 8; RuntimeModel::~RuntimeModel() { GELOGI("RuntimeModel destructor start"); - // Release task first, hccl task hold stream - task_list_.clear(); - // Unbind rtModel from all task related streams RtModelUnbindStream(); + // Release task first, hccl task hold stream + task_list_.clear(); + // Release all task related streams RtStreamDestory();