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