Browse Source

clear map container when handles destoryed

tags/v1.6.0
ms_yan 4 years ago
parent
commit
ae6ab7d0d5
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mindspore/ccsrc/minddata/dataset/engine/tdt/tdt_handle.h

+ 5
- 0
mindspore/ccsrc/minddata/dataset/engine/tdt/tdt_handle.h View File

@@ -64,6 +64,11 @@ inline bool TdtHandle::DestroyHandle() {
}
}
}

// clear the map container when all the handle has been destroyed
if (destroy_all) {
acl_handle_map.clear();
}
return destroy_all;
}



Loading…
Cancel
Save