!833 correcting resource release sequence

From: @nicholas_yhr
Reviewed-by: @youui,@liujunzhu
Signed-off-by: @youui
pull/833/MERGE v1.1.0
mindspore-ci-bot 5 years ago committed by Gitee
commit 8896282c88

@ -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