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

Method CheckFooter

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

Source from the content-addressed store, hash-verified

152}
153
154bool GPUDebugAllocator::CheckFooter(void* ptr) {
155 char* original_ptr = static_cast<char*>(ptr) - MASK_BYTES;
156 size_t req_size = base_allocator_->RequestedSize(original_ptr);
157 return CheckMask(stream_exec_, original_ptr + req_size - MASK_BYTES,
158 after_mask);
159}
160
161// -----------------------------------------------------------------------------
162// GPUNanResetAllocator

Callers 1

TESTFunction · 0.80

Calls 2

CheckMaskFunction · 0.85
RequestedSizeMethod · 0.45

Tested by 1

TESTFunction · 0.64