Home
last modified time | relevance | path

Searched refs:temp_allocator (Results 1 – 12 of 12) sorted by relevance

/aosp_15_r20/external/executorch/runtime/executor/test/
H A Dmemory_manager_test.cpp28 EXPECT_EQ(mm.temp_allocator(), nullptr); in TEST()
39 EXPECT_EQ(mm.temp_allocator(), nullptr); in TEST()
45 MemoryAllocator temp_allocator(0, nullptr); in TEST() local
47 MemoryManager mm(&method_allocator, &planned_memory, &temp_allocator); in TEST()
51 EXPECT_EQ(mm.temp_allocator(), &temp_allocator); in TEST()
57 MemoryAllocator temp_allocator(0, nullptr); in TEST() local
65 /*temporary_allocator=*/&temp_allocator); in TEST()
69 EXPECT_EQ(mm.temp_allocator(), &temp_allocator); in TEST()
H A Dmanaged_memory_manager.h31 MemoryAllocator* temp_allocator = nullptr)
39 memory_manager_(&method_allocator_, &planned_memory_, temp_allocator) {}
/aosp_15_r20/external/executorch/runtime/kernel/test/
H A Dkernel_runtime_context_test.cpp74 MemoryAllocator temp_allocator( in TEST_F() local
76 KernelRuntimeContext context(nullptr, &temp_allocator); in TEST_F()
85 MemoryAllocator temp_allocator( in TEST_F() local
87 KernelRuntimeContext context(nullptr, &temp_allocator); in TEST_F()
96 TestMemoryAllocator temp_allocator( in TEST_F() local
98 KernelRuntimeContext context(nullptr, &temp_allocator); in TEST_F()
101 EXPECT_EQ(temp_allocator.last_seen_alignment, 2); in TEST_F()
/aosp_15_r20/external/executorch/examples/arm/executor_runner/
H A Darm_executor_runner.cpp427 ArmMemoryAllocator temp_allocator( in main() local
431 &method_allocator, &planned_memory, &temp_allocator); in main()
497 if (temp_allocator.size() > 0) { in main()
501 temp_allocator.used_size(), in main()
502 temp_allocator.size(), in main()
503 temp_allocator.free_size(), in main()
504 100 * temp_allocator.used_size() / temp_allocator.size()); in main()
/aosp_15_r20/external/executorch/runtime/executor/
H A Dmemory_manager.h55 MemoryAllocator* temp_allocator = nullptr)
58 temp_allocator_(temp_allocator) { in method_allocator_()
60 method_allocator != temp_allocator, in method_allocator_()
104 MemoryAllocator* temp_allocator() const { in temp_allocator() function
H A Dmethod.h274 MemoryAllocator* temp_allocator) in Method() argument
278 temp_allocator_(temp_allocator), in Method()
H A Dmethod.cpp566 MemoryAllocator* temp_allocator = memory_manager->temp_allocator(); in load() local
567 if (temp_allocator == nullptr) { in load()
575 temp_allocator = platform_allocator; in load()
577 Method method(program, memory_manager, event_tracer, temp_allocator); in load()
/aosp_15_r20/external/executorch/extension/module/
H A Dmodule.cpp54 std::unique_ptr<runtime::MemoryAllocator> temp_allocator, in Module() argument
61 temp_allocator ? std::move(temp_allocator) in Module()
70 std::unique_ptr<runtime::MemoryAllocator> temp_allocator, in Module() argument
77 temp_allocator ? std::move(temp_allocator) in Module()
H A Dmodule.h66 std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr,
82 std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr,
/aosp_15_r20/external/executorch/runtime/backend/
H A Dbackend_execution_context.h24 MemoryAllocator* temp_allocator = nullptr,
27 temp_allocator_(temp_allocator), in event_tracer_()
/aosp_15_r20/external/executorch/runtime/kernel/
H A Dkernel_runtime_context.h42 MemoryAllocator* temp_allocator = nullptr)
43 : event_tracer_(event_tracer), temp_allocator_(temp_allocator) {} in event_tracer_()
/aosp_15_r20/external/executorch/extension/training/module/
H A Dtraining_module.h34 std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr,
39 std::move(temp_allocator), in Module() argument