nuttx/tools
chao an 2961ecab9f sim/tflm: add tflite-micro demo into ci build
$ cmake -B build -DBOARD_CONFIG=sim/tflm -GNinja
$ cmake --build build
$ ./build/nuttx

NuttShell (NSH) NuttX-10.4.0
nsh> tflm -h

Utility to use tflite micro on nuttx.
[ -C       ] Compile tflite model into c++ codes.
[ -E       ] Do once evaluation (for profiling).
[ -i <str> ] Readable model file path.
[ -o <str> ] Writable c++ file path.
[ -p <str> ] Prefix of compiled code.
[ -a <int> ] Arena size (mempool).
[ -h       ] Print this message.

nsh> tflm -E -i /data/MobileNet-v3-Small.tflite -o /data/MbileNet-v3-Small.out
0 (id=0): size=602112, offset=0, first_used=0 last_used=1
1 (id=1): size=602112, offset=602112, first_used=1 last_used=2
2 (id=2): size=602112, offset=0, first_used=2 last_used=3
3 (id=3): size=607504, offset=802816, first_used=3 last_used=4
...
* (id=114): size=4096, offset=0, first_used=114 last_used=115
* (id=115): size=4000, offset=4096, first_used=115 last_used=115
 0: 00000000000000000000000000...................................................... (588k)
 1: 0000000000000000000000000011111111111111111111111111............................ (1176k)
 2: 2222222222222222222222222211111111111111111111111111............................ (1176k)
 3: 22222222222222222222222222........333333333333333333333333333................... (1182k)
...
"Event","Tag","Ticks"
0,SUB,0
1,MUL,0
2,PAD,0
3,CONV_2D,1
4,HARD_SWISH,0
5,PAD,0
...
110,MEAN,0
111,FULLY_CONNECTED,0
112,FULLY_CONNECTED,0
113,MUL,0
114,FULLY_CONNECTED,0
"Unique Tag","Total ticks across all events with that tag."
SUB, 0
MUL, 0
PAD, 0
CONV_2D, 3
...
"total number of ticks", 3
nxai done!

Signed-off-by: chao an <anchao@lixiang.com>
2024-11-29 18:34:10 +08:00
..
bl602
ci sim/tflm: add tflite-micro demo into ci build 2024-11-29 18:34:10 +08:00
cxd56
esp32
esp32c3
esp32s2
esp32s3 tools/esp32s3/Config.mk: fix "printf:`\': invalid format character" 2024-10-22 08:54:15 +08:00
espressif riscv/espressif/bootloader/mcuboot: Sign image with MCUBoot version 2024-11-13 20:28:17 +01:00
gdb nuttxgdb/rpmsg.py:dump rpmsg_service message 2024-11-28 20:40:04 +08:00
imx9 tools/imx9: Add norimage support to bootloader 2024-11-22 18:53:21 +08:00
licensing
lwl
mpfs
pic32
rp23xx follow upstream change & fix minor things 2024-11-20 16:32:05 -03:00
rp2040 tools/rp2040: Building picotool if necessary 2024-11-11 10:38:58 +08:00
simwifi
zds
.gitignore
b16.c
bdf-converter.c
btdecode.sh
build-globals.sh
callstack.py
cfgdefine.c
cfgdefine.h
cfgparser.c
cfgparser.h
checkpatch.sh tools/checkpatch: fix isort doesn't return error 2024-10-18 21:30:13 +08:00
checkrelease.sh
CMakeLists.txt cmake:add cmake host tool mkdeps incdir 2024-10-31 17:55:13 +08:00
cmpconfig.c
cnvwindeps.c
Config.mk gcov: Correct existing gcov configuration 2024-11-15 01:05:16 +08:00
configure.bat
configure.c
configure.sh
configure_completion.bash
convert-comments.c
copydir.bat
copydir.sh
coredump.py coredump.py:bug fix python file not have rename 2024-10-30 12:29:22 +08:00
csvparser.c
csvparser.h
D.defs
define.bat
define.sh
detab.c
Directories.mk libbuitin/compiler_rt: Supports separate builtin rt.builtins or rt.profile 2024-11-12 16:12:53 +08:00
discover.py
doreleasenotes.py
Export.mk
flash_writer.py
FlatLibs.mk libbuitin/compiler_rt: Supports separate builtin rt.builtins or rt.profile 2024-11-12 16:12:53 +08:00
gcov.sh
gcov_convert.py libs: add gcov framework support 2024-11-22 19:08:08 +08:00
gdbserver.py get g_tcbinfo just use elf memory 2024-11-14 13:30:34 +08:00
gencromfs.c
ide_exporter.py
incdir.bat
incdir.c
incdir.sh
indent.sh
initialconfig.c
jlink-nuttx.c
kasan_global.py
kconfig.bat
kconfig2html.c
KernelLibs.mk libbuitin/compiler_rt: Supports separate builtin rt.builtins or rt.profile 2024-11-12 16:12:53 +08:00
LibTargets.mk clang:libclang_rt.builtins-xxx.a supports builtin 2024-10-28 16:38:45 +08:00
link.bat
link.sh
lowhex.c
macar-qcs.sh
Make.defs
Makefile.host
merge_config.py
mkallsyms.py
mkallsyms.sh
mkconfig.c
mkconfigvars.sh
mkctags.sh
mkdeps.c tools/mkdeps: increase MAX_BUFFER from 16384 to 65536 2024-10-31 08:55:07 +08:00
mkexport.sh
mkfsdata.pl
mkfsdata.py
mknulldeps.sh
mkromfsimg.sh
mksymtab.c
mksyscall.c
mkversion.c
mkwindeps.sh
netusb.sh
noteinfo.c
nxstyle.c clang: Support compiling rt.profile library 2024-10-30 17:10:23 +08:00
parsecallstack.py
parsememdump.py mm: dump node overheadp during memdump 2024-11-25 00:42:34 +08:00
parsetrace.py tools: fix parsetrace.py output 2024-10-18 10:29:48 +08:00
pre-commit
process_config.sh macos : fix “sed: -I or -i may not be used with stdin” 2024-11-04 22:40:29 +08:00
ProtectedLibs.mk libbuitin/compiler_rt: Supports separate builtin rt.builtins or rt.profile 2024-11-12 16:12:53 +08:00
refresh.sh tools/refresh.sh:skip config check on debug configs 2024-10-30 22:14:40 +08:00
rmcr.c
Rust.defs
sethost.sh
showsize.sh
showstack.sh
simbridge.sh
simhostroute.sh
simlaunch.sh sim:support sim elf and dynamic libs package in post build 2024-11-06 01:56:44 +08:00
size_report.py
stm32_pinmap_tool.py
Swift.defs
testbuild.sh cmake: Renamed savedefconfig with refreshsilent 2024-10-18 22:14:50 +08:00
toolchain.cmake.export
uncrustify.cfg
Unix.mk macos : fix “sed: -I or -i may not be used with stdin” 2024-11-04 22:40:29 +08:00
unlink.bat
unlink.sh
version.sh
Win.mk tools/Unix.mk:make incdir precedence over other targets 2024-10-30 22:14:40 +08:00
xmlrpc_test.py
Zig.defs
zipme.sh