Home
last modified time | relevance | path

Searched refs:ChunkHandle (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.h93 typedef size_t ChunkHandle; typedef
133 ChunkHandle prev = kInvalidChunkHandle;
138 ChunkHandle next = kInvalidChunkHandle;
176 bool operator()(const ChunkHandle ha, in operator()
177 const ChunkHandle hb) const NO_THREAD_SAFETY_ANALYSIS { in operator()
190 typedef std::set<ChunkHandle, ChunkComparator> FreeChunkSet;
219 handles_.reset(new ChunkHandle[n_handles]); in AllocationRegion()
235 ChunkHandle get_handle(const void* p) const { in get_handle()
238 void set_handle(const void* p, ChunkHandle h) { handles_[IndexFor(p)] = h; } in set_handle()
265 std::unique_ptr<ChunkHandle[]> handles_;
[all …]
Dbfc_allocator.cc84 BFCAllocator::Chunk* BFCAllocator::ChunkFromHandle(ChunkHandle h) { in ChunkFromHandle()
149 ChunkHandle h = AllocateChunk(); in Extend()
166 BFCAllocator::ChunkHandle BFCAllocator::AllocateChunk() { in AllocateChunk()
168 ChunkHandle h = free_chunks_list_; in AllocateChunk()
173 ChunkHandle h = chunks_.size(); in AllocateChunk()
179 void BFCAllocator::DeallocateChunk(ChunkHandle h) { in DeallocateChunk()
306 const BFCAllocator::ChunkHandle h = (*citer); in FindChunkPtr()
355 void BFCAllocator::SplitChunk(BFCAllocator::ChunkHandle h, size_t num_bytes) { in SplitChunk()
357 ChunkHandle h_new_chunk = AllocateChunk(); in SplitChunk()
380 BFCAllocator::ChunkHandle h_neighbor = c->next; in SplitChunk()
[all …]