summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>2019-03-18 17:14:40 +0900
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>2019-03-18 17:14:40 +0900
commit043fabd069abfe09fdd1fad9fe1518d4157c1834 (patch)
treecfbd1994993c17eaf94ef0a1f9387d454482003c /tests
parentae5a3095609729d8897ef0f9ae179af817d1a028 (diff)
downloadnnfw-043fabd069abfe09fdd1fad9fe1518d4157c1834.tar.gz
nnfw-043fabd069abfe09fdd1fad9fe1518d4157c1834.tar.bz2
nnfw-043fabd069abfe09fdd1fad9fe1518d4157c1834.zip
Move scripts related with tflite_benchmark_model (#4770)
This commit extracts scripts related with tflite_benchmark_model from "externals/CMakeLists.txt", and move these scripts into tflite_benchmark_model project. Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/tools/tflite_benchmark_model/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tools/tflite_benchmark_model/CMakeLists.txt b/tests/tools/tflite_benchmark_model/CMakeLists.txt
index c48f658c1..7e0e9d861 100644
--- a/tests/tools/tflite_benchmark_model/CMakeLists.txt
+++ b/tests/tools/tflite_benchmark_model/CMakeLists.txt
@@ -2,6 +2,12 @@ if (NOT BUILD_TFLITE_BENCHMARK_MODEL)
return()
endif(NOT BUILD_TFLITE_BENCHMARK_MODEL)
+nnfw_find_package(TensorFlowLite REQUIRED)
+
+# TODO Remove this target_compile_definitions command, and just check its presence.
+# This change is prerequisites on pre-built tensorflow-lite package support
+target_compile_definitions(tensorflow-lite PUBLIC "TFLITE_PROFILING_ENABLED")
+
file(GLOB_RECURSE SOURCES "*.cc")
nnfw_find_package(TensorFlowSource REQUIRED)