Searched refs:temp_allocator_ (Results 1 – 9 of 9) sorted by relevance
/external/executorch/runtime/executor/test/ |
D | kernel_integration_test.cpp | 239 temp_allocator_.get()); in SetUp() 275 std::unique_ptr<TempMemoryAllocator> temp_allocator_ = nullptr; member in KernelIntegrationTest 282 temp_allocator_ = std::make_unique<TempMemoryAllocator>(); in SetUp() 365 EXPECT_EQ(temp_allocator_->number_of_allocations, 1); in TEST_F() 366 EXPECT_EQ(temp_allocator_->total_allocated_size, 4); in TEST_F() 368 EXPECT_EQ(temp_allocator_->number_of_resets, 1); in TEST_F() 369 EXPECT_EQ(temp_allocator_->currently_allocated_size, 0); in TEST_F() 376 EXPECT_EQ(temp_allocator_->number_of_allocations, 2); in TEST_F() 377 EXPECT_EQ(temp_allocator_->total_allocated_size, 12); in TEST_F() 379 EXPECT_EQ(temp_allocator_->number_of_resets, 2); in TEST_F() [all …]
|
/external/executorch/runtime/backend/ |
D | backend_execution_context.h | 27 temp_allocator_(temp_allocator), in event_tracer_() 48 return temp_allocator_->allocate(size, alignment); 55 return temp_allocator_; in get_temp_allocator() 67 MemoryAllocator* temp_allocator_ = nullptr; variable
|
/external/executorch/runtime/kernel/ |
D | kernel_runtime_context.h | 43 : event_tracer_(event_tracer), temp_allocator_(temp_allocator) {} in event_tracer_() 92 temp_allocator_ != nullptr, NotFound, "No temp allocator provided"); 93 void* temp_memory = temp_allocator_->allocate(size, alignment); 106 MemoryAllocator* temp_allocator_ = nullptr; variable
|
/external/executorch/runtime/executor/ |
D | memory_manager.h | 58 temp_allocator_(temp_allocator) { in method_allocator_() 105 return temp_allocator_; in temp_allocator() 111 MemoryAllocator* temp_allocator_; variable
|
D | method.h | 56 temp_allocator_(rhs.temp_allocator_), in Method() 278 temp_allocator_(temp_allocator), in Method() 319 MemoryAllocator* temp_allocator_; variable
|
D | method.cpp | 1055 KernelRuntimeContext context(event_tracer_, temp_allocator_); in execute_instruction() 1103 /*temp_allocator=*/temp_allocator_, in execute_instruction() 1176 if (temp_allocator_ != nullptr) { in execute_instruction() 1177 temp_allocator_->reset(); in execute_instruction()
|
/external/executorch/extension/module/ |
D | module.cpp | 46 temp_allocator_(std::make_unique<MallocMemoryAllocator>()), in Module() 60 temp_allocator_( in Module() 76 temp_allocator_( in Module() 154 temp_allocator_.get()); in load_method()
|
D | module.h | 442 std::unique_ptr<runtime::MemoryAllocator> temp_allocator_; variable
|
/external/executorch/extension/pybindings/ |
D | pybindings.cpp | 353 &temp_allocator_) {} 369 MemoryAllocator temp_allocator_{MemoryAllocator(0, nullptr)}; member in executorch::extension::pybindings::__anon02ac06ea0111::Module::Memory
|