nuttx-apps/mlearning/tflite-micro
Abhishek Mishra 00b6e59123 mlearning/tflite-micro: make the tflm tool run real models
The tflm tool could only allocate a model: it knew nine operators,
ran Invoke() on uninitialized input, and never printed the result.
The 64 KB MicroProfiler also lived on the 4 KB task stack.

Register the operators a model uses (about 90 builtins), verify the
file with the FlatBuffers verifier, and add:

  -I  print operators, input/output tensors and arena usage
  -d  comma separated input values, quantized automatically
  -x  raw input tensor file
  -n  repeat inference and print the average Invoke() time

Outputs are printed dequantized with argmax. Inputs are restored
before every run because the planner may reuse their buffers. The
resolver, profiler and interpreter are allocated on the heap.

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
2026-10-01 23:18:31 +08:00
..
operators/neon mlearning: migrate to SPDX identifier 2024-12-21 13:53:10 +08:00
.gitignore fix: git status/git status --ignore normalization check problem 2024-10-18 09:40:17 +08:00
0001-dequantize-int8.patch ml: tflm dequantize optimization patch 2024-10-18 09:40:17 +08:00
0002-quantize-int8.patch ml: tflm quantize optimization patch 2024-10-18 09:40:17 +08:00
0003-mean-int8.patch ml: tflm mean optimization patch 2024-10-18 09:40:17 +08:00
0004-tflite-add-extern-C-to-main-function-to-avoid-c-mang.patch tflm: add tflm hello world example into nuttx build 2024-12-02 13:33:55 +08:00
CMakeLists.txt mlearning/tflite-micro: use the same compile flags in Make and CMake 2026-09-22 14:43:45 +08:00
Kconfig mlearning/tflite-micro: fixed the header file 2026-08-11 15:38:46 -04:00
Make.defs mlearning: migrate to SPDX identifier 2024-12-21 13:53:10 +08:00
Makefile mlearning/tflite-micro: use the same compile flags in Make and CMake 2026-09-22 14:43:45 +08:00
tflite-micro.patch delete the neon conv2D 2024-10-18 09:40:17 +08:00
tflm_syslog.cc mlearning: migrate to SPDX identifier 2024-12-21 13:53:10 +08:00
tflm_tool.cc mlearning/tflite-micro: make the tflm tool run real models 2026-10-01 23:18:31 +08:00