This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit b91adbb9f2ede51e1ccdeae80b4db248ee89adc7
Author: jihandong <jihand...@xiaomi.com>
AuthorDate: Tue May 28 16:24:21 2024 +0800

    ml: useful tflm debug options
    
    print memory plan, and time cost of each operators.
    
    Signed-off-by: jihandong <jihand...@xiaomi.com>
---
 mlearning/tflite-micro/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mlearning/tflite-micro/Makefile b/mlearning/tflite-micro/Makefile
index 1db63a28b..eb03470f4 100644
--- a/mlearning/tflite-micro/Makefile
+++ b/mlearning/tflite-micro/Makefile
@@ -55,7 +55,10 @@ COMMON_FLAGS += -Wno-undef
 COMMON_FLAGS += -Wno-unused-variable
 COMMON_FLAGS += -DTFLITE_EMULATE_FLOAT
 COMMON_FLAGS += -DTF_LITE_DISABLE_X86_NEON
-ifeq ($(CONFIG_TFLITEMICRO_DEBUG),)
+ifneq ($(CONFIG_TFLITEMICRO_DEBUG),)
+COMMON_FLAGS += -DTF_LITE_SHOW_MEMORY_USE
+COMMON_FLAGS += -DTF_LITE_USE_CTIME
+else
 COMMON_FLAGS += -DTF_LITE_STRIP_ERROR_STRINGS
 endif
 

Reply via email to