Browse Source

!833 correcting resource release sequence

From: @nicholas_yhr
Reviewed-by: @youui,@liujunzhu
Signed-off-by: @youui
tags/v1.1.0^0
mindspore-ci-bot Gitee 4 years ago
parent
commit
8896282c88
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ge/ge_runtime/runtime_model.cc

+ 3
- 3
ge/ge_runtime/runtime_model.cc View File

@@ -32,12 +32,12 @@ const int kOffsetUnit = 8;
RuntimeModel::~RuntimeModel() { RuntimeModel::~RuntimeModel() {
GELOGI("RuntimeModel destructor start"); GELOGI("RuntimeModel destructor start");


// Release task first, hccl task hold stream
task_list_.clear();

// Unbind rtModel from all task related streams // Unbind rtModel from all task related streams
RtModelUnbindStream(); RtModelUnbindStream();


// Release task first, hccl task hold stream
task_list_.clear();

// Release all task related streams // Release all task related streams
RtStreamDestory(); RtStreamDestory();




Loading…
Cancel
Save