blob: 3a7dc893c1730d17cd63791ac334f76bf04f0401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
function(_TensorFlowRuySource_import)
if(NOT DOWNLOAD_RUY)
set(TensorFlowRuySource_FOUND FALSE PARENT_SCOPE)
return()
endif(NOT DOWNLOAD_RUY)
nnas_include(ExternalSourceTools)
nnas_include(OptionTools)
# Exact version used by TensorFlow v2.3.0.
# See tensorflow/third_party/ruy/workspace.bzl
envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
envoption(TENSORFLOW_2_3_0_RUY_URL ${EXTERNAL_DOWNLOAD_SERVER}/google/ruy/archive/34ea9f4993955fa1ff4eb58e504421806b7f2e8f.zip)
ExternalSource_Download(RUY DIRNAME TENSORFLOW-2.3.0-RUY ${TENSORFLOW_2_3_0_RUY_URL})
set(TensorFlowRuySource_DIR ${RUY_SOURCE_DIR} PARENT_SCOPE)
set(TensorFlowRuySource_FOUND TRUE PARENT_SCOPE)
endfunction(_TensorFlowRuySource_import)
_TensorFlowRuySource_import()
|