MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Deallocate

Method Deallocate

tensorflow/core/common_runtime/tensorpool_allocator.cc:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void TensorPoolAllocator::Bin::Deallocate(Header* header) {
221 if (header->internal_bin == nullptr) {
222 buffer_.Deallocate(header->raw_ptr);
223 } else {
224 virtual_buffer_.Deallocate(header->raw_ptr,
225 (TensorPoolAllocator::Bin*)(header->internal_bin));
226 }
227}
228
229void* TensorPoolAllocator::Bin::AllocateRaw() {
230 return buffer_.Allocate();

Callers 4

DeallocateRawMethod · 0.45
BigDeallocateMethod · 0.45
FreeMethod · 0.45
TESTFunction · 0.45

Calls 2

emplaceMethod · 0.45
DeallocateRawMethod · 0.45

Tested by 1

TESTFunction · 0.36