Arm(R) Ethos(TM)-U Tensorflow Lite for Microcontrollers test application¶
A sample application that demonstrates how to run an inference using the TFLM framework and the Arm Ethos-U NPU.
Vela takes a tflite file as input and produces another tflite file as output, where the operators supported by Ethos-U have been replaced by an Ethos-U custom operator. In an ideal case the complete network would be replaced by a single Ethos-U custom operator.
Building and running¶
This application can be built and run on any Arm Ethos-U capable platform, for example Corstone(TM)-300. A reference implementation of Corstone-300 can be downloaded either as a FPGA bitfile for the MPS3 FPGA prototyping board, or as a Fixed Virtual Platform that can be emulated on a host machine.
Assuming that the Corstone-300 FVP has been downloaded, installed and added to
PATH variable, then building and testing can be done with following
$ west build -b mps3_an547 zephyr/samples/tflm_ethosu $ FVP_Corstone_SSE-300_Ethos-U55 build/zephyr/zephyr.elf