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

Method CheckHeader

tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:149–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147void GPUDebugAllocator::ClearStats() { base_allocator_->ClearStats(); }
148
149bool GPUDebugAllocator::CheckHeader(void* ptr) {
150 return CheckMask(stream_exec_, static_cast<char*>(ptr) - MASK_BYTES,
151 before_mask);
152}
153
154bool GPUDebugAllocator::CheckFooter(void* ptr) {
155 char* original_ptr = static_cast<char*>(ptr) - MASK_BYTES;

Callers 1

TESTFunction · 0.80

Calls 1

CheckMaskFunction · 0.85

Tested by 1

TESTFunction · 0.64