Home
last modified time | relevance | path

Searched refs:MemGuard (Results 1 – 6 of 6) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dallocator.h135 class MemGuard {
138 MemGuard() : n_(0) {} in MemGuard() function
139 explicit MemGuard(allocator a) : n_(0), alloc_(a) {} in MemGuard() function
141 MemGuard(const MemGuard &) = delete;
142 MemGuard &operator=(const MemGuard &) = delete;
144MemGuard(MemGuard &&lhs) noexcept : n_(lhs.n_), alloc_(std::move(lhs.alloc_)), ptr_(std::move(lhs.… in MemGuard() function
145 MemGuard &operator=(MemGuard &&lhs) noexcept {
170 ~MemGuard() noexcept { deallocate(); } in ~MemGuard()
Dqueue_map.h143 auto r = all_.emplace(key, MemGuard<RequestQueue, Allocator<RequestQueue>>(alloc)); in GetRq()
157 std::map<K, MemGuard<RequestQueue, Allocator<RequestQueue>>> all_;
Dqueue.h164 MemGuard<T, Allocator<T>> arr_;
/third_party/mindspore/tests/ut/cpp/dataset/
Dmemory_pool_test.cc77 MemGuard<uint8_t> mem; in TEST_F()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/
Dcache_merge_op.h125 …std::map<row_id_type, MemGuard<TensorRowCacheRequest, Allocator<TensorRowCacheRequest>>> io_reques…
Dcache_merge_op.cc241 …auto r = io_request_.emplace(row_id, MemGuard<TensorRowCacheRequest, Allocator<TensorRowCacheReque… in GetRq()