Searched refs:bin_num (Results 1 – 2 of 2) sorted by relevance
/external/tensorflow/tensorflow/core/common_runtime/ |
D | bfc_allocator.cc | 268 BinNum bin_num = BinNumForSize(rounded_bytes); in AllocateRawInternal() local 271 void* ptr = FindChunkPtr(bin_num, rounded_bytes, num_bytes, freed_before); in AllocateRawInternal() 278 ptr = FindChunkPtr(bin_num, rounded_bytes, num_bytes, freed_before); in AllocateRawInternal() 297 void* BFCAllocator::FindChunkPtr(BinNum bin_num, size_t rounded_bytes, in FindChunkPtr() argument 300 for (; bin_num < kNumBins; bin_num++) { in FindChunkPtr() 303 Bin* b = BinFromIndex(bin_num); in FindChunkPtr() 360 CHECK(!c->in_use() && (c->bin_num == kInvalidBinNum)); in SplitChunk() 462 CHECK(!c->in_use() && (c->bin_num == kInvalidBinNum)); in InsertFreeChunkIntoBin() 463 BinNum bin_num = BinNumForSize(c->size); in InsertFreeChunkIntoBin() local 464 Bin* new_bin = BinFromIndex(bin_num); in InsertFreeChunkIntoBin() [all …]
|
D | bfc_allocator.h | 141 BinNum bin_num = kInvalidBinNum; member 334 void* FindChunkPtr(BinNum bin_num, size_t rounded_bytes, size_t num_bytes,
|