Browse Source

correcting resource release sequence

tags/v1.1.0^2
yanghaoran 4 years ago
parent
commit
9ccf43d4cf
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() {
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();



Loading…
Cancel
Save