Searched refs:MemGuard (Results 1 – 6 of 6) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | allocator.h | 135 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; 144 …MemGuard(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()
|
D | queue_map.h | 143 auto r = all_.emplace(key, MemGuard<RequestQueue, Allocator<RequestQueue>>(alloc)); in GetRq() 157 std::map<K, MemGuard<RequestQueue, Allocator<RequestQueue>>> all_;
|
D | queue.h | 164 MemGuard<T, Allocator<T>> arr_;
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | memory_pool_test.cc | 77 MemGuard<uint8_t> mem; in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/ |
D | cache_merge_op.h | 125 …std::map<row_id_type, MemGuard<TensorRowCacheRequest, Allocator<TensorRowCacheRequest>>> io_reques…
|
D | cache_merge_op.cc | 241 …auto r = io_request_.emplace(row_id, MemGuard<TensorRowCacheRequest, Allocator<TensorRowCacheReque… in GetRq()
|