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

Function GetHeader

tensorflow/core/common_runtime/tensorpool_allocator.cc:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41Header* GetHeader(void* p) {
42 auto header = (Header*)((char*) p - sizeof(Header));
43 if (header->user_ptr != p) {
44 auto light_header = GetLightHeader(p);
45 LOG(FATAL) << "Memory corruption!"
46 << ", p:" << p
47 << ", p->header_size:" << light_header->header_size
48 << ", p->checksum:" << light_header->checksum;
49 }
50 return header;
51}
52
53void* SetDefaultHeader(bool stats_time, void* p,
54 size_t total_bytes, size_t header_size) {

Callers 1

DeallocateRawMethod · 0.85

Calls 1

GetLightHeaderFunction · 0.85

Tested by

no test coverage detected