Use arm_embedded_module to simplify the runner in app_main - #19
christophe0606 wants to merge 1 commit into
Conversation
Ported from PR #19 by Christophe Favergeon. EmbeddedModule is ExecuTorch's Module class without the POSIX file loading, so program loading, planned memory and execution leave app_main.cpp. Unlike the PR, the input tensor wraps a static buffer through TensorImpl instead of make_tensor_ptr: the pack's Extension Tensor component pulls in tensor_ptr_maker.cpp, which needs std::random_device and does not build with the LLVM embedded toolchain. The pool sizes stay overridable by the board layer. Verified on the FVP with CLANG.
|
Thanks. |
Use the class
EmbeddedModuleto simplify the runner inapp_main.EmbeddedModuleis derived from executorchModuleclass but removes all the POSIX related APIs that are not useful on embedded device and preventModulefrom being built for embedded devices.