diff options
author | 오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com> | 2018-11-08 16:12:55 +0900 |
---|---|---|
committer | 이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com> | 2018-11-08 16:12:55 +0900 |
commit | 19bb8e8e56b2775f5e77d0b562d0b08322635c74 (patch) | |
tree | a2c86bd2389f28ca782c504f5cdf9699f74d7608 /cmake/packages/AbslSourceConfig.cmake | |
parent | d01c9dc2320bdc1c218843e38e3e53f72b64142c (diff) | |
download | nnfw-19bb8e8e56b2775f5e77d0b562d0b08322635c74.tar.gz nnfw-19bb8e8e56b2775f5e77d0b562d0b08322635c74.tar.bz2 nnfw-19bb8e8e56b2775f5e77d0b562d0b08322635c74.zip |
Update tensorflow to v1.12 (#3486)
* Update external package
- Update external package version
- Update cmake to build tflite
- Add gitignore for new external code
* Update library to support tflite
- Update nnapi delegate
- Update NeuralNetworksShim.h for new API
- Fix cmake for new files in updated tensorflow
- Workaround: Introduce OBS_BUILD flag to avoid gbs build fail
* Update neurun CPU kernel
- Update neurun CPU kernel to call updated tflite interpreter kernel
- Add build option -fPIC for updated tflite kernel
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Diffstat (limited to 'cmake/packages/AbslSourceConfig.cmake')
-rw-r--r-- | cmake/packages/AbslSourceConfig.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/packages/AbslSourceConfig.cmake b/cmake/packages/AbslSourceConfig.cmake new file mode 100644 index 000000000..9075b7397 --- /dev/null +++ b/cmake/packages/AbslSourceConfig.cmake @@ -0,0 +1,19 @@ +function(_AbslSource_import) + if(NOT DOWNLOAD_ABSL) + set(AbslSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_ABSL) + + nnfw_include(ExternalSourceTools) + nnfw_include(OptionTools) + + # NOTE The following URL comes from TensorFlow 1.12 + envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") + set(ABSL_URL ${EXTERNAL_DOWNLOAD_SERVER}/abseil/abseil-cpp/archive/48cd2c3f351ff188bc85684b84a91b6e6d17d896.tar.gz) + ExternalSource_Download("absl" ${ABSL_URL}) + + set(AbslSource_DIR ${absl_SOURCE_DIR} PARENT_SCOPE) + set(AbslSource_FOUND TRUE PARENT_SCOPE) +endfunction(_AbslSource_import) + +_AbslSource_import() |