Home
last modified time | relevance | path

Searched refs:allocs_ (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/lite/
Dsimple_memory_arena.cc48 if (!allocs_.empty()) { in Allocate()
49 auto last = allocs_.rbegin(); in Allocate()
56 auto best_insertion_it = allocs_.end(); in Allocate()
60 for (auto it = allocs_.begin(); it != allocs_.end(); ++it) { in Allocate()
78 allocs_.insert(best_insertion_it, *new_alloc); in Allocate()
90 auto it = allocs_.begin(); in Deallocate()
91 while (it != allocs_.end()) { in Deallocate()
95 it = allocs_.erase(it); in Deallocate()
147 allocs_.clear(); in Clear()
Darena_planner.cc56 allocs_.clear(); in ResetAllocations()
57 allocs_.resize(graph_info_->num_tensors()); in ResetAllocations()
190 TF_LITE_ENSURE(context_, graph_info_->num_tensors() >= allocs_.size()); in ExecuteAllocations()
191 allocs_.resize(graph_info_->num_tensors()); in ExecuteAllocations()
252 if (allocs_[tensor_index].size != 0) { in ResolveTensorAllocation()
253 TF_LITE_ENSURE_STATUS(arena_.ResolveAlloc(context_, allocs_[tensor_index], in ResolveTensorAllocation()
259 context_, allocs_[tensor_index], &tensor.data.raw)); in ResolveTensorAllocation()
268 context_, tensor_alignment_, tensor.bytes, &allocs_[tensor_index])); in CalculateTensorAllocation()
272 context_, tensor_alignment_, tensor.bytes, &allocs_[tensor_index])); in CalculateTensorAllocation()
280 TF_LITE_ENSURE_STATUS(arena_.Deallocate(context_, allocs_[tensor_index])); in CalculateTensorDeallocation()
Dsimple_memory_arena.h51 allocs_() {} in SimpleMemoryArena()
84 std::list<ArenaAlloc> allocs_; variable
Darena_planner.h98 std::vector<ArenaAlloc> allocs_; variable
/external/grpc-grpc/test/core/gpr/
Darena_test.cc71 static const size_t allocs_##name[] = {__VA_ARGS__}; \
72 test(#name, init_size, allocs_##name, GPR_ARRAY_SIZE(allocs_##name))