diff options
author | Chunseok Lee <chunseok.lee@samsung.com> | 2020-03-05 15:10:09 +0900 |
---|---|---|
committer | Chunseok Lee <chunseok.lee@samsung.com> | 2020-03-05 15:22:53 +0900 |
commit | d91a039e0eda6fd70dcd22672b8ce1817c1ca50e (patch) | |
tree | 62668ec548cf31fadbbf4e99522999ad13434a25 /infra/nncc/cmake/packages/PytorchSourceConfig.cmake | |
parent | bd11b24234d7d43dfe05a81c520aa01ffad06e42 (diff) | |
download | nnfw-d91a039e0eda6fd70dcd22672b8ce1817c1ca50e.tar.gz nnfw-d91a039e0eda6fd70dcd22672b8ce1817c1ca50e.tar.bz2 nnfw-d91a039e0eda6fd70dcd22672b8ce1817c1ca50e.zip |
catch up to tizen_5.5 and remove unness dir
- update to tizen_5.5
- remove dirs
Diffstat (limited to 'infra/nncc/cmake/packages/PytorchSourceConfig.cmake')
-rw-r--r-- | infra/nncc/cmake/packages/PytorchSourceConfig.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/infra/nncc/cmake/packages/PytorchSourceConfig.cmake b/infra/nncc/cmake/packages/PytorchSourceConfig.cmake new file mode 100644 index 000000000..c28bc7c00 --- /dev/null +++ b/infra/nncc/cmake/packages/PytorchSourceConfig.cmake @@ -0,0 +1,18 @@ +function(_PytorchSource_import) + if(NOT DOWNLOAD_PYTORCH) + set(PytorchSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_PYTORCH) + + nncc_include(ExternalSourceTools) + nncc_include(OptionTools) + + envoption(PYTORCH_URL https://github.com/pytorch/pytorch/archive/v0.4.1.tar.gz) + + ExternalSource_Download(PYTORCH ${PYTORCH_URL}) + + set(PytorchSource_DIR ${PYTORCH_SOURCE_DIR} PARENT_SCOPE) + set(PytorchSource_FOUND ${DOWNLOAD_PYTORCH} PARENT_SCOPE) +endfunction(_PytorchSource_import) + +_PytorchSource_import() |