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

Method AllocatedSize

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

Returns the allocated size of the buffer at 'ptr' if known, otherwise returns RequestedSize(ptr). AllocatedSize(ptr) is guaranteed to be >= RequestedSize(ptr). 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

187 // REQUIRES: 'ptr!=nullptr' and points to a buffer previously
188 // allocated by this allocator.
189 virtual size_t AllocatedSize(const void* ptr) const {
190 return RequestedSize(ptr);
191 }
192
193 // Returns either 0 or an identifier assigned to the buffer at 'ptr'
194 // when the buffer was returned by AllocateRaw. If non-zero, the

Callers 8

AllocateRawMethod · 0.45
BatchAllocateRawMethod · 0.45
GetAllocatedBytesMethod · 0.45
AllocatedSizeMethod · 0.45
allocate_tempMethod · 0.45
allocate_persistentMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36