Part 1
요약·해설
Arm model zoo, Vela 변환 원리, MPS3·FVP와 전체 build 명령을 보존합니다.
TFLM
Ethos-U NPU
Vela
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
6E88C42AB77DB99E03FE59DBC46CF77A24867E717D8369F2AFB60411F440B6FC
.. _tflm_ethosu:
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.
The sample application runs a model that has been downloaded from the
`Arm model zoo <https://github.com/ARM-software/ML-zoo>`_. This model has then
been optimized using the
`Vela compiler <https://git.mlplatform.org/ml/ethos-u/ethos-u-vela.git>`_.
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
********************
Add the tflite-micro module to your West manifest and pull it:
.. code-block:: console
west config manifest.project-filter -- +tflite-micro
west update
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 <https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3>`_,
or as a
`Fixed Virtual Platform <https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps>`_
that can be emulated on a host machine.
Assuming that the Corstone-300 FVP has been downloaded, installed and added to
the ``PATH`` variable, then building and testing can be done with following
commands.
.. code-block:: bash
$ west build -b mps3/an547 zephyr/samples/modules/tflite-micro/tflm_ethosu
$ FVP_Corstone_SSE-300_Ethos-U55 build/zephyr/zephyr.elf
Part 3
한국어 전문 번역
이 sample application은 TensorFlow Lite for Microcontrollers(TFLM) framework와 Arm Ethos-U NPU를 사용해 inference를 실행하는 방법을 보여줍니다.
Application은 Arm model zoo에서 내려받은 model을 실행합니다. 이 model은 Vela compiler로 최적화했습니다.
Vela는 tflite file을 입력받아 또 다른 tflite file을 출력합니다. 이때 Ethos-U가 지원하는 operator는 Ethos-U custom operator로 바뀝니다. 이상적인 경우에는 전체 network가 하나의 Ethos-U custom operator로 대체됩니다.
Build와 실행
West manifest에 tflite-micro module을 추가하고 내려받습니다.
west config manifest.project-filter -- +tflite-micro
west update
이 application은 Corstone-300 같은 모든 Arm Ethos-U 지원 platform에서 build하고 실행할 수 있습니다. Corstone-300 reference implementation은 MPS3 FPGA prototyping board용 FPGA bitfile이나 host에서 emulation할 수 있는 Fixed Virtual Platform으로 받을 수 있습니다.
Corstone-300 FVP를 내려받아 설치하고 PATH에 추가했다면 다음 명령으로 build하고 시험합니다.
$ west build -b mps3/an547 zephyr/samples/modules/tflite-micro/tflm_ethosu
$ FVP_Corstone_SSE-300_Ethos-U55 build/zephyr/zephyr.elf
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.