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

Function FindPrefix

tensorflow/core/common_runtime/pool_allocator.cc:89–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89ChunkPrefix* FindPrefix(void* user_ptr) {
90 ChunkPrefix* cp = reinterpret_cast<ChunkPrefix*>(user_ptr) - 1;
91 return reinterpret_cast<ChunkPrefix*>(cp->chunk_ptr);
92}
93} // namespace
94
95void* PoolAllocator::AllocateRaw(size_t alignment, size_t num_bytes) {

Callers 1

DeallocateRawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected