Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.cc90 bool BFCAllocator::Extend(size_t alignment, size_t rounded_bytes) { in Extend() argument
97 if (rounded_bytes > available_bytes) { in Extend()
105 while (rounded_bytes > curr_region_allocation_bytes_) { in Extend()
122 if (bytes < rounded_bytes) break; in Extend()
247 size_t rounded_bytes = in RoundedBytes() local
250 DCHECK_EQ(size_t{0}, rounded_bytes % kMinAllocationSize); in RoundedBytes()
251 return rounded_bytes; in RoundedBytes()
265 size_t rounded_bytes = RoundedBytes(num_bytes); in AllocateRawInternal() local
268 BinNum bin_num = BinNumForSize(rounded_bytes); in AllocateRawInternal()
271 void* ptr = FindChunkPtr(bin_num, rounded_bytes, num_bytes, freed_before); in AllocateRawInternal()
[all …]
Dbfc_allocator.h329 bool Extend(size_t alignment, size_t rounded_bytes)
334 void* FindChunkPtr(BinNum bin_num, size_t rounded_bytes, size_t num_bytes,