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

Method AllocationId

tensorflow/core/framework/allocator.h:202–202  ·  view source on GitHub ↗

Returns either 0 or an identifier assigned to the buffer at 'ptr' when the buffer was returned by AllocateRaw. If non-zero, the identifier differs from every other ID assigned by this allocator. REQUIRES: TracksAllocationSizes() is true. REQUIRES: 'ptr!=nullptr' and points to a buffer previously allocated by this allocator.

Source from the content-addressed store, hash-verified

200 // REQUIRES: 'ptr!=nullptr' and points to a buffer previously
201 // allocated by this allocator.
202 virtual int64 AllocationId(const void* ptr) const { return 0; }
203
204 // Returns the allocated size of the buffer at 'ptr' if known,
205 // otherwise returns 0. This method can be called when

Callers 7

RecordDeallocationMethod · 0.45
AllocationIdMethod · 0.45
allocate_persistentMethod · 0.45
RecordRawAllocationMethod · 0.45
RecordRawDeallocationMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36