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

Method GetMainAllocator

tensorflow/lite/experimental/ruy/context.h:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 TracingContext tracing;
55
56 Allocator* GetMainAllocator() {
57 if (!main_allocator_) {
58 main_allocator_.reset(new Allocator);
59 }
60 return main_allocator_.get();
61 }
62
63 void EnsureNPerThreadStates(int thread_count) {
64 while (per_thread_states.size() < static_cast<std::size_t>(thread_count)) {

Callers 1

TrMulFunction · 0.80

Calls 2

resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected