Skip to content

Commit

Permalink
more fixes for generic benchmark wrt Corstone-300 (#2592)
Browse files Browse the repository at this point in the history
@tensorflow/micro

Add person_detection_vela.tflite to tensorflow/lite/micro/models.

Use the ethos-u co-processor and ethos-u enabled model when running benchmark.

bug=fixes #2591
  • Loading branch information
ddavis-2015 committed May 21, 2024
1 parent 8e22946 commit dfdd666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ readable_run make -j$(nproc) -f tensorflow/lite/micro/tools/make/Makefile CO_PRO
readable_run make -f tensorflow/lite/micro/tools/make/Makefile CO_PROCESSOR=ethos_u OPTIMIZED_KERNEL_DIR=${OPTIMIZED_KERNEL_DIR} TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} TOOLCHAIN=${TOOLCHAIN} test

# Run generic benchmark.
# Instruction cycle counter not functional in simulator for ethos-u co-processor.
readable_run make -j$(nproc) -f tensorflow/lite/micro/tools/make/Makefile \
CO_PROCESSOR=ethos_u \
OPTIMIZED_KERNEL_DIR=${OPTIMIZED_KERNEL_DIR} \
TARGET=${TARGET} \
TARGET_ARCH=${TARGET_ARCH} \
TOOLCHAIN=${TOOLCHAIN} \
GENERIC_BENCHMARK_MODEL_PATH=tensorflow/lite/micro/models/person_detect.tflite \
GENERIC_BENCHMARK_MODEL_PATH=tensorflow/lite/micro/models/person_detect_vela.tflite \
GENERIC_BENCHMARK_ARENA_SIZE=`expr 150 \* 1024` \
run_tflm_benchmark

0 comments on commit dfdd666

Please sign in to comment.