1 function(_TensorFlowSource_import)
2 if(NOT DOWNLOAD_TENSORFLOW)
3 set(TensorFlowSource_FOUND FALSE PARENT_SCOPE)
5 endif(NOT DOWNLOAD_TENSORFLOW)
7 nnas_include(ExternalSourceTools)
8 nnas_include(OptionTools)
10 envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
11 envoption(TENSORFLOW_2_12_1_URL ${EXTERNAL_DOWNLOAD_SERVER}/tensorflow/tensorflow/archive/v2.12.1.tar.gz)
13 ExternalSource_Download(TENSORFLOW DIRNAME TENSORFLOW-2.12.1 ${TENSORFLOW_2_12_1_URL})
15 set(TensorFlowSource_DIR ${TENSORFLOW_SOURCE_DIR} PARENT_SCOPE)
16 set(TensorFlowSource_FOUND TRUE PARENT_SCOPE)
17 endfunction(_TensorFlowSource_import)
19 _TensorFlowSource_import()