diff options
author | 대인기/On-Device Lab(SR)/Staff Engineer/삼성전자 <inki.dae@samsung.com> | 2019-02-08 15:46:27 +0900 |
---|---|---|
committer | 박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com> | 2019-02-08 15:46:27 +0900 |
commit | 61fa8616fa3142ef5819af7e5c69c4bfa79f8b79 (patch) | |
tree | 181136f2910b708111ca0ec06b3ea57116658953 /Makefile | |
parent | 6794918926a05f06e5d5b5c54783a3c82ec0a656 (diff) | |
download | nnfw-61fa8616fa3142ef5819af7e5c69c4bfa79f8b79.tar.gz nnfw-61fa8616fa3142ef5819af7e5c69c4bfa79f8b79.tar.bz2 nnfw-61fa8616fa3142ef5819af7e5c69c4bfa79f8b79.zip |
Check tflite version in build time (#4371)
* Check tflite version in build time
This patch seperates what OBS_BUILD flag means into.
- OBS_BUILD flag decides where external packages should be
installed from - if OBS_BUILD == 1 then from tizen package server
otherwise from upstream.
- TFLITE_VER means what tensorflow-lite version nnfw uses - if
TFLITE_VER == 190 then nnfw uses tensorflow-lite v1.9.0 for Tizen
otherwise tensorflow-lite v1.12.0. In default TFLITE_VER is 1120.
For this, I added a TFLITE_VER flag, which will pass proper version
information - 190 for gbs build or 1120 in default - to code side.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
* Seperated TFLITE_VER into TFLITE_MAJOR_VER and TFLITE_MINOR_VER
Signed-off-by: Inki Dae <inki.dae@samsung.com>
* Updated nnapi_delegate.h I missed.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
* Updated and cleaned up
- Cleaned up CMakeLists.txt file
- Added TFLITE_MAJOR_VER and TFLITE_MINOR_VER flags when coverage_build == 1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
* Updated description
Signed-off-by: Inki Dae <inki.dae@samsung.com>
* Fix typo
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,8 @@ COVERAGE_BUILD?=0 BENCHMARK_ACL_BUILD?=0 OPTIONS?= GENERATE_NNAPI_TESTS?=1 +TFLITE_MAJOR_VER?=1 +TFLITE_MINOR_VER?=12 # make TARGET and TYPE to lowercase TARGET_ARCH_LC=$(shell echo $(TARGET_ARCH) | tr A-Z a-z) @@ -155,6 +157,8 @@ endif -DHOST_OS=$(HOST_OS) \ -DTARGET_OS=$(TARGET_OS) \ -DOBS_BUILD=$(OBS_BUILD) \ + -DTFLITE_MAJOR_VER=$(TFLITE_MAJOR_VER) \ + -DTFLITE_MINOR_VER=$(TFLITE_MINOR_VER) \ $(OPTION_TOOLCHAIN) \ $(OPTIONS) touch $(TIMESTAMP_CONFIGURE) |