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

Method AllocateBytes

tensorflow/lite/experimental/ruy/allocator.h:151–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149class Allocator {
150 public:
151 void* AllocateBytes(std::size_t num_bytes) {
152 if (num_bytes == 0) {
153 return nullptr;
154 }
155 return aligned.AllocateAlignedBytes(
156 round_up_pot(num_bytes, detail::AlignedAllocator::kAlignment));
157 }
158 template <typename Pointer>
159 void Allocate(std::size_t count, Pointer* out) {
160 using T = typename std::pointer_traits<Pointer>::element_type;

Callers 3

TESTFunction · 0.45
MakePrepackedMatricesMethod · 0.45
AllocatePMatrixFunction · 0.45

Calls 2

round_up_potFunction · 0.85
AllocateAlignedBytesMethod · 0.80

Tested by 2

TESTFunction · 0.36
MakePrepackedMatricesMethod · 0.36