Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.cc61 new (BinFromIndex(b)) Bin(this, bin_size); in BFCAllocator()
62 CHECK_EQ(BinForSize(bin_size), BinFromIndex(b)); in BFCAllocator()
63 CHECK_EQ(BinForSize(bin_size + 255), BinFromIndex(b)); in BFCAllocator()
64 CHECK_EQ(BinForSize(bin_size * 2 - 1), BinFromIndex(b)); in BFCAllocator()
66 CHECK_NE(BinForSize(bin_size * 2), BinFromIndex(b)); in BFCAllocator()
80 BinFromIndex(b)->~Bin(); in ~BFCAllocator()
303 Bin* b = BinFromIndex(bin_num); in FindChunkPtr()
464 Bin* new_bin = BinFromIndex(bin_num); in InsertFreeChunkIntoBin()
482 CHECK_GT(BinFromIndex(c->bin_num)->free_chunks.erase(h), 0) in RemoveFreeChunkFromBin()
628 Bin* b = BinFromIndex(bin_num); in DumpMemoryLog()
[all …]
Dbfc_allocator.h413 Bin* BinFromIndex(BinNum index) { in BinFromIndex() function
424 Bin* BinForSize(size_t bytes) { return BinFromIndex(BinNumForSize(bytes)); } in BinForSize()