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

Method Allocate

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

Source from the content-addressed store, hash-verified

157 }
158 template <typename Pointer>
159 void Allocate(std::size_t count, Pointer* out) {
160 using T = typename std::pointer_traits<Pointer>::element_type;
161 *out = static_cast<T*>(AllocateBytes(count * sizeof(T)));
162 }
163
164 void FreeAll() { aligned.FreeAll(); }
165

Callers 4

TESTFunction · 0.45
InitMethod · 0.45
RunMethod · 0.45
TrMulFunction · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
InitMethod · 0.36