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

Method AllocateRaw

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

Return an uninitialized block of memory that is "num_bytes" bytes in size with specified allocation attributes. The returned pointer is guaranteed to be aligned to a multiple of "alignment" bytes. REQUIRES: "alignment" is a power of 2.

Source from the content-addressed store, hash-verified

116 // guaranteed to be aligned to a multiple of "alignment" bytes.
117 // REQUIRES: "alignment" is a power of 2.
118 virtual void* AllocateRaw(size_t alignment, size_t num_bytes,
119 const AllocationAttributes& allocation_attr) {
120 // The default behavior is to use the implementation without any allocation
121 // attributes.
122 return AllocateRaw(alignment, num_bytes);
123 }
124
125 virtual size_t BatchAllocateRaw(size_t num,
126 size_t alignment, size_t num_bytes, void** ret) {

Callers 15

TESTFunction · 0.45
AllocMethod · 0.45
AllocMethod · 0.45
AllocateRawMethod · 0.45
TESTFunction · 0.45
BM_AllocationFunction · 0.45
AllocateMethod · 0.45
GetSnapshotMethod · 0.45
GetShardedSnapshotMethod · 0.45
GetEmbeddingMethod · 0.45
AllocateMethod · 0.45
AllocateMethod · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
BM_AllocationFunction · 0.36