diff options
author | Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com> | 2019-08-20 16:06:39 +0900 |
---|---|---|
committer | 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com> | 2019-08-20 16:06:39 +0900 |
commit | 282c9fa74c43adeb9388a9780c31e06dd6ab6a85 (patch) | |
tree | d5bb75699aeb9dde33e88e42012d4746c36f5df3 /infra | |
parent | aaa342599a244430eeb9634ecb18e92a292efba9 (diff) | |
download | nnfw-282c9fa74c43adeb9388a9780c31e06dd6ab6a85.tar.gz nnfw-282c9fa74c43adeb9388a9780c31e06dd6ab6a85.tar.bz2 nnfw-282c9fa74c43adeb9388a9780c31e06dd6ab6a85.zip |
Add ONNX sources v1.5 (#6642)
Add a cmake configs for fetching ONNX v1.5 sources.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
Diffstat (limited to 'infra')
-rw-r--r-- | infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfig.cmake | 20 | ||||
-rw-r--r-- | infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfigVersion.cmake | 10 |
2 files changed, 30 insertions, 0 deletions
diff --git a/infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfig.cmake b/infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfig.cmake new file mode 100644 index 000000000..7f890e911 --- /dev/null +++ b/infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfig.cmake @@ -0,0 +1,20 @@ +function(_ONNXSource_import) + if(NOT DOWNLOAD_ONNX) + set(ONNXSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_ONNX) + + nncc_include(ExternalSourceTools) + nncc_include(OptionTools) + + envoption(ONNX_1_5_0_URL https://github.com/onnx/onnx/archive/v1.5.0.zip) + + ExternalSource_Download(ONNX DIRNAME ONNX-1.5.0 + CHECKSUM MD5=1a5fe554569a3819705b26de33d8fe02 + URL ${ONNX_1_5_0_URL}) + + set(ONNXSource_DIR ${ONNX_SOURCE_DIR} PARENT_SCOPE) + set(ONNXSource_FOUND TRUE PARENT_SCOPE) +endfunction(_ONNXSource_import) + +_ONNXSource_import() diff --git a/infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfigVersion.cmake b/infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfigVersion.cmake new file mode 100644 index 000000000..70b2804b0 --- /dev/null +++ b/infra/nncc/cmake/packages/ONNXSource-1.5.0/ONNXSourceConfigVersion.cmake @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION "1.5.0") +set(PACKAGE_VERSION_EXACT FALSE) +set(PACKAGE_VERSION_COMPATIBLE FALSE) +set(PACKAGE_VERSION_UNSUITABLE TRUE) + +if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + set(PACKAGE_VERSION_UNSUITABLE FALSE) +endif(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) |