forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docker] Update tensorflow/tflite/xgboost versions (apache#8306)
* [Docker] Updated tensorflow/tflite version to 2.4.2 Tensorflow update required following update to cuda 11.0. Based on https://www.tensorflow.org/install/source#gpu, the 2.4 branch of tensorflow should be used with cuda 11.0. - Removed pinned version of keras/h5py, no longer needed. tensorflow/tensorflow#44467 (comment) - Updated tflite version to 2.4.2. Also, tflite install script now reads the installed version of tensorflow, to keep the version matched in the future. * [Docker] Corrected version pinning of xgboost Previously, due to missing quotes, installed most recent version of xgboost, piping the results to a file named '=1.1.0'. Now, installs xgboost at least at version 1.1.0. Co-authored-by: Eric Lunderberg <[email protected]>
- Loading branch information
1 parent
002441d
commit 9f350d3
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,10 @@ set -e | |
set -u | ||
set -o pipefail | ||
|
||
# The tflite version should have matched versions to the tensorflow | ||
# version installed from pip in ubuntu_install_tensorflow.sh | ||
TENSORFLOW_VERSION=$(python3 -c "import tensorflow; print(tensorflow.__version__)" 2> /dev/null) | ||
|
||
# Download, build and install flatbuffers | ||
git clone --branch=v1.12.0 --depth=1 --recursive https://github.com/google/flatbuffers.git | ||
cd flatbuffers | ||
|
@@ -33,22 +37,22 @@ pip3 install flatbuffers | |
# Build the TFLite static library, necessary for building with TFLite ON. | ||
# The library is built at: | ||
# tensorflow/tensorflow/lite/tools/make/gen/*/lib/libtensorflow-lite.a. | ||
git clone https://github.com/tensorflow/tensorflow --branch=r2.3 | ||
git clone https://github.com/tensorflow/tensorflow --branch=v${TENSORFLOW_VERSION} | ||
./tensorflow/tensorflow/lite/tools/make/download_dependencies.sh | ||
./tensorflow/tensorflow/lite/tools/make/build_lib.sh | ||
|
||
# Setup tflite from schema | ||
mkdir tflite | ||
cp tensorflow/tensorflow/lite/schema/schema.fbs tflite | ||
cd tflite | ||
wget -q https://raw.githubusercontent.com/tensorflow/tensorflow/r2.3/tensorflow/lite/schema/schema.fbs | ||
flatc --python schema.fbs | ||
|
||
cat <<EOM >setup.py | ||
import setuptools | ||
setuptools.setup( | ||
name="tflite", | ||
version="2.3.1", | ||
version="${TENSORFLOW_VERSION}", | ||
author="google", | ||
author_email="[email protected]", | ||
description="TFLite", | ||
|