summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>2019-04-23 16:58:13 +0900
committerGitHub Enterprise <noreply-CODE@samsung.com>2019-04-23 16:58:13 +0900
commit9df0eff70e680596f329dcf7ca097a914fe738ee (patch)
tree81a35c8a32f664233d71af4d414a5f1b6ac906e6
parent0b3ce387e1acfbd0ffe40c58391265d00b4c6cd0 (diff)
downloadnnfw-9df0eff70e680596f329dcf7ca097a914fe738ee.tar.gz
nnfw-9df0eff70e680596f329dcf7ca097a914fe738ee.tar.bz2
nnfw-9df0eff70e680596f329dcf7ca097a914fe738ee.zip
Introduce build option for tflite accuracy tool (#5048)
Introduce build option for tflite accuracy tool and set off as default Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
-rw-r--r--cmake/CfgOptionFlags.cmake1
-rw-r--r--tools/tflite_accuracy/CMakeLists.txt4
2 files changed, 5 insertions, 0 deletions
diff --git a/cmake/CfgOptionFlags.cmake b/cmake/CfgOptionFlags.cmake
index 468229a15..c863d402c 100644
--- a/cmake/CfgOptionFlags.cmake
+++ b/cmake/CfgOptionFlags.cmake
@@ -24,6 +24,7 @@ option(BUILD_TFLITE_RUN "Build tflite-run" ON)
option(BUILD_TFLITE_BENCHMARK_MODEL "Build tflite benchmark model" OFF)
option(BUILD_NNAPI_QUICKCHECK "Build NN API Quickcheck tools" OFF)
option(BUILD_TOOLS "Bulid nnfw projects under tools/" ON)
+option(BUILD_TFLITE_ACCURACY "Build tflite accuracy tool" OFF)
#
# Build configuration for contrib
#
diff --git a/tools/tflite_accuracy/CMakeLists.txt b/tools/tflite_accuracy/CMakeLists.txt
index bbb25da58..b545ac6bd 100644
--- a/tools/tflite_accuracy/CMakeLists.txt
+++ b/tools/tflite_accuracy/CMakeLists.txt
@@ -1,3 +1,7 @@
+if(NOT BUILD_TFLITE_ACCURACY)
+ return()
+endif(NOT BUILD_TFLITE_ACCURACY)
+
list(APPEND TFLITE_ACCURACY_SRCS "src/tflite_accuracy.cc")
add_executable(tflite_accuracy ${TFLITE_ACCURACY_SRCS})