I am currently trying to understand how I can generate an .elf file for an ARM Cortex M7. This page Setting Up ExecuTorch — ExecuTorch 0.2 documentation (pytorch.org) doesn’t really talk about how I can do that. Also, if I take a look at GitHub executorch/examples/arm there only is one ARM example for a Cortex-M55. I am sorry but can anyone give me further tutorial material?
What I understood is that I need to export my trained model using to_executorch and then convert the .pte file to a header file via executorch/examples/arm/executor_runner/pte_to_header.py at main · pytorch/executorch · GitHub
What I don’t know is how I can create a minimal C++ example which loads the model from the header file and calls the forward function for a given input vector?
Apart from that code, which should let you execute the model, you’ll need to make sure that your .elf links in the kernels that are necessary to run the model. Overview of ExecuTorch’s Kernel Libraries — ExecuTorch main documentation and the documents that follow it talk about kernel libraries and registration.