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

Method Allocate

tensorflow/core/common_runtime/gpu_tensorpool_allocator.cc:325–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void* GPUTensorPoolAllocator::Bin::Allocate() {
326 auto ptr = buffer_.Allocate();
327 if (ptr != nullptr) {
328 return ptr;
329 }
330 return virtual_buffer_.Allocate();
331}
332
333void* GPUTensorPoolAllocator::Bin::AllocateRaw() {
334 return buffer_.Allocate();

Callers 3

AllocateRawMethod · 0.45
BigAllocateMethod · 0.45
BigAllocateStatisticMethod · 0.45

Calls 4

emptyMethod · 0.45
popMethod · 0.45
sizeMethod · 0.45
AllocateRawMethod · 0.45

Tested by

no test coverage detected