############################################################################
# apps/mlearning/tflite-micro/Kconfig
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.  The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

config TFLITEMICRO
	bool "TFLiteMicro"
	default n
	depends on SYSTEM_FLATBUFFERS && MATH_GEMMLOWP && MATH_KISSFFT && MATH_RUY

if TFLITEMICRO
	config TFLITEMICRO_DEBUG
	bool "Print tflite-micro's debug message"
	default n

	config XTENSA_HIFI
	bool "Enable Xtensa HiFi DSP optimized kernels"
	default n
	---help---
		Enable Xtensa HiFi DSP optimized TFLM kernel implementations.
		This will use hardware-accelerated operators from
		tensorflow/lite/micro/kernels/xtensa/ directory.

	config TFLITEMICRO_TOOL
	bool "tflite-micro online compiling tool"
	default n

	config TFLITEMICRO_BENCHMARK_TOOL
	bool "tflite-micro benchmarking tool"
	default n

if TFLITEMICRO_TOOL
	config TFLITEMICRO_TOOL_PRIORITY
	int "tflite-micro tool priority"
	default 100

	config TFLITEMICRO_TOOL_STACKSIZE
	int "tflite-micro tool stacksize"
	default 4096

endif

if TFLITEMICRO_BENCHMARK_TOOL
	config TFLITEMICRO_BENCHMARK_TOOL_PRIORITY
	int "tflite-micro benchmarking tool priority"
	default 100

	config TFLITEMICRO_BENCHMARK_TOOL_STACKSIZE
	int "tflite-micro benchmarking tool stacksize"
	default 10240

	config BENCHMARK_MODEL_PATH
	string "tflite model path"
	default ""

	config BENCHMARK_TENSOR_ARENA_SIZE
	int "arena size for tensors"
	default 32768
endif

endif