Home
last modified time | relevance | path

Searched refs:method_allocator (Results 1 – 18 of 18) sorted by relevance

/aosp_15_r20/external/executorch/runtime/executor/test/
H A Dmemory_manager_test.cpp22 MemoryAllocator method_allocator(0, nullptr); in TEST() local
24 MemoryManager mm(&method_allocator); in TEST()
26 EXPECT_EQ(mm.method_allocator(), &method_allocator); in TEST()
32 MemoryAllocator method_allocator(0, nullptr); in TEST() local
35 MemoryManager mm(&method_allocator, &planned_memory); in TEST()
37 EXPECT_EQ(mm.method_allocator(), &method_allocator); in TEST()
43 MemoryAllocator method_allocator(0, nullptr); in TEST() local
47 MemoryManager mm(&method_allocator, &planned_memory, &temp_allocator); in TEST()
49 EXPECT_EQ(mm.method_allocator(), &method_allocator); in TEST()
55 MemoryAllocator method_allocator(0, nullptr); in TEST() local
[all …]
/aosp_15_r20/external/executorch/examples/arm/executor_runner/
H A Darm_executor_runner.cpp400 ArmMemoryAllocator method_allocator( in main() local
407 size_t planned_buffer_membase = method_allocator.used_size(); in main()
416 reinterpret_cast<uint8_t*>(method_allocator.allocate(buffer_size)); in main()
422 method_allocator.used_size() - planned_buffer_membase; in main()
431 &method_allocator, &planned_memory, &temp_allocator); in main()
433 size_t method_loaded_membase = method_allocator.used_size(); in main()
444 method_allocator.used_size() - method_loaded_membase; in main()
448 size_t input_membase = method_allocator.used_size(); in main()
451 ::prepare_input_tensors(*method, method_allocator, input_buffers); in main()
460 size_t input_memsize = method_allocator.used_size() - input_membase; in main()
[all …]
/aosp_15_r20/external/executorch/runtime/executor/
H A Dmethod.cpp226 MemoryAllocator* method_allocator, in gen_instruction_arguments() argument
231 EValue** arg_list = method_allocator->allocateList<EValue*>(num_args); in gen_instruction_arguments()
294 values_ = memory_manager_->method_allocator()->allocateList<EValue>(n_value); in parse_values()
341 memory_manager_->method_allocator()->allocateList<EValue*>( in parse_values()
344 memory_manager_->method_allocator()->allocateList<int64_t>( in parse_values()
518 auto method_allocator = memory_manager_->method_allocator(); in resolve_operator() local
519 TensorMeta* meta = method_allocator->allocateList<TensorMeta>(n_args); in resolve_operator()
532 method_allocator->allocateList<exec_aten::DimOrderType>(tensor.dim()); in resolve_operator()
569 memory_manager->method_allocator() in load()
601 auto method_allocator = memory_manager_->method_allocator(); in init() local
[all …]
H A Dtensor_parser_portable.cpp32 auto method_allocator = memory_manager->method_allocator(); in parseTensor() local
86 method_allocator, exec_aten::SizesType, dim); in parseTensor()
88 method_allocator, exec_aten::DimOrderType, dim); in parseTensor()
109 method_allocator, exec_aten::StridesType, dim); in parseTensor()
117 ET_ALLOCATE_INSTANCE_OR_RETURN_ERROR(method_allocator, TensorImpl); in parseTensor()
H A Dmemory_manager.h53 MemoryAllocator* method_allocator,
56 : method_allocator_(method_allocator), in method_allocator_() argument
60 method_allocator != temp_allocator, in method_allocator_()
86 MemoryAllocator* method_allocator() const { in method_allocator() function
H A Dtensor_parser.h40 auto* evalp_list = memory_manager->method_allocator()->allocateList<EValue*>( in parseListOptionalType()
47 memory_manager->method_allocator() in parseListOptionalType()
H A Dtensor_parser_exec_aten.cpp78 memory_manager->method_allocator()->allocateList<exec_aten::Tensor>( in parseTensorList()
83 auto* evalp_list = memory_manager->method_allocator()->allocateList<EValue*>( in parseTensorList()
/aosp_15_r20/external/executorch/test/
H A Dsize_test.cpp28 MemoryAllocator method_allocator( in main() local
30 method_allocator.enable_profiling("method allocator"); in main()
36 MemoryManager memory_manager(&method_allocator, &planned_memory); in main()
89 method_allocator.allocateList<EValue>(method->outputs_size()); in main()
/aosp_15_r20/external/executorch/examples/mediatek/executor_runner/llama_runner/
H A DModelChunk.cpp53 std::unique_ptr<MemoryAllocator> method_allocator; member
537 modelInstance->method_allocator = std::make_unique<MemoryAllocator>( in CreateModelInstance()
539 auto& method_allocator = modelInstance->method_allocator; in CreateModelInstance() local
540 method_allocator->enable_profiling("method allocator"); in CreateModelInstance()
562 method_allocator.get(), in CreateModelInstance()
/aosp_15_r20/external/executorch/examples/portable/executor_runner/
H A Dexecutor_runner.cpp120 MemoryAllocator method_allocator{ in main() local
147 MemoryManager memory_manager(&method_allocator, &planned_memory); in main()
/aosp_15_r20/external/executorch/backends/cadence/
H A Dexecutor_runner.cpp144 executorch::runtime::MemoryAllocator method_allocator{ in main() local
167 &method_allocator, &planned_memory); in main()
/aosp_15_r20/external/executorch/examples/mediatek/executor_runner/
H A Dmtk_executor_runner.cpp125 MemoryAllocator method_allocator{ in main() local
152 MemoryManager memory_manager(&method_allocator, &planned_memory); in main()
H A Dmtk_oss_executor_runner.cpp144 MemoryAllocator method_allocator{ in main() local
172 MemoryManager memory_manager(&method_allocator, &planned_memory); in main()
/aosp_15_r20/external/executorch/examples/devtools/example_runner/
H A Dexample_runner.cpp183 MemoryAllocator method_allocator{MemoryAllocator( in main() local
210 MemoryManager memory_manager(&method_allocator, &planned_memory); in main()
/aosp_15_r20/external/executorch/examples/apple/coreml/executor_runner/
H A Dmain.mm362 …MemoryAllocator method_allocator(static_cast<int32_t>(method_buffer.size()), method_buffer.data());
365 MemoryManager memory_manager(&method_allocator, &planned_allocator);
390 auto outputs = method_allocator.allocateList<EValue>(method->outputs_size());
/aosp_15_r20/external/executorch/examples/qualcomm/executor_runner/
H A Dqnn_executor_runner.cpp199 MemoryAllocator method_allocator{ in main() local
226 MemoryManager memory_manager(&method_allocator, &planned_memory); in main()
/aosp_15_r20/external/executorch/docs/source/
H A Drunning-a-model-cpp-tutorial.md90 MallocMemoryAllocator method_allocator;
94 MemoryManager memory_manager(&method_allocator, &planned_memory);
/aosp_15_r20/external/executorch/examples/apple/mps/executor_runner/
H A Dmps_executor_runner.mm225 MemoryAllocator method_allocator{
252 MemoryManager memory_manager(&method_allocator, &planned_memory);