blob: 8120ebca2e23f77ae71874544c2c002b549f5023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
function(_TensorFlowEigenSource_import)
if(NOT DOWNLOAD_EIGEN)
set(TensorFlowEigenSource_FOUND FALSE PARENT_SCOPE)
return()
endif(NOT DOWNLOAD_EIGEN)
nnas_include(ExternalSourceTools)
nnas_include(OptionTools)
# Exact version used by TensorFlow v2.1.0.
# See tensorflow/tensorflow/workspace.bzl.
envoption(EXTERNAL_DOWNLOAD_SERVER "https://gitlab.com")
envoption(TENSORFLOW_2_1_0_EIGEN_URL ${EXTERNAL_DOWNLOAD_SERVER}/libeigen/eigen/-/archive/4e696901f873a2347f76d931cf2f701e31e15d05/eigen-4e696901f873a2347f76d931cf2f701e31e15d05.tar.gz)
ExternalSource_Download(EIGEN DIRNAME TENSORFLOW-2.1.0-EIGEN ${TENSORFLOW_2_1_0_EIGEN_URL})
set(TensorFlowEigenSource_DIR ${EIGEN_SOURCE_DIR} PARENT_SCOPE)
set(TensorFlowEigenSource_FOUND TRUE PARENT_SCOPE)
endfunction(_TensorFlowEigenSource_import)
_TensorFlowEigenSource_import()
|