Browse Source

!93 Handle empty label resource

Merge pull request !93 from zhoufeng/r1.0
pull/93/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
87f4fa2228
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/ge/ge_runtime/runtime_model.cc

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

@@ -344,6 +344,9 @@ void RuntimeModel::RtStreamDestory() noexcept {

void RuntimeModel::RtLabelDestory() noexcept {
for (size_t i = 0; i < label_list_.size(); i++) {
if (label_list_[i] == nullptr) {
continue;
}
if (rtLabelDestroy(label_list_[i]) != RT_ERROR_NONE) {
GELOGE(RT_FAILED, "Destroy label failed! Index: %zu.", i);
return;


Loading…
Cancel
Save