ml: useful tflm debug options

print memory plan, and time cost of each operators.

Signed-off-by: jihandong <jihandong@xiaomi.com>
This commit is contained in:
jihandong 2024-05-28 16:24:21 +08:00 committed by Xiang Xiao
parent f2eb5cd3c4
commit b91adbb9f2

View file

@ -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