File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
examples/ios_demo_apps/ExecutorchMobileNet/ExecutorchMobileNet/ExecutorchMobileNet Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -162,12 +162,8 @@ - (char*)segmentImage:(void*)imageBuffer
162162 MemoryAllocator temp_allocator{MemoryAllocator (0 , nullptr )};
163163 temp_allocator.enable_profiling (" temp allocator" );
164164
165- MemoryAllocator non_const_allocators[1 ]{
166- MemoryAllocator (kMemoryAmount , activation_pool)};
167- non_const_allocators[0 ].enable_profiling (" non_const_allocators" );
168-
169- HierarchicalAllocator non_const_allocator{
170- HierarchicalAllocator (1 , non_const_allocators)};
165+ Span<uint8_t > non_const_buffers[1 ]{{activation_pool, kMemoryAmount }};
166+ HierarchicalAllocator non_const_allocator ({non_const_buffers, 1 });
171167
172168 MemoryManager memory_manager{MemoryManager (
173169 &const_allocator,
You can’t perform that action at this time.
0 commit comments