Skip to content

Commit

Permalink
Use the latest Docker image for LiteRT build.
Browse files Browse the repository at this point in the history
LITERT_OSS_REV_ID: 700470825
  • Loading branch information
junjiang-lab authored and copybara-github committed Nov 26, 2024
1 parent a0c8a61 commit 3510082
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ci/build_pip_package_with_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ ! -z "${NIGHTLY_RELEASE_DATE}" ]; then
export PROJECT_NAME="${PROJECT_NAME}_nightly"
fi

BUILD_DIR="${TENSORFLOW_LITE_DIR}/gen/litert_pip/${PYTHON}"
BUILD_DIR="${TENSORFLOW_LITE_DIR}/gen/litert_pip/python3"
TENSORFLOW_TARGET=${TENSORFLOW_TARGET:-$1}
if [ "${TENSORFLOW_TARGET}" = "rpi" ]; then
export TENSORFLOW_TARGET="armhf"
Expand Down
7 changes: 4 additions & 3 deletions ci/build_pip_package_with_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ROOT_DIR="${SCRIPT_DIR}/.."
if [ ! -d /root_dir ]; then
# Running on host.
cd ${SCRIPT_DIR}
docker build . -t tflite-builder -f tflite-py${DOCKER_PYTHON_VERSION}.Dockerfile
docker build . -t tflite-builder -f tflite-py3.Dockerfile

docker run \
-v ${SCRIPT_DIR}/../third_party/tensorflow:/third_party_tensorflow \
Expand All @@ -34,6 +34,9 @@ if [ ! -d /root_dir ]; then
tflite-builder
exit 0
else
export CI_BUILD_PYTHON="python${DOCKER_PYTHON_VERSION}"
export HERMETIC_PYTHON_VERSION="${DOCKER_PYTHON_VERSION}"

# Running inside docker container
cd /third_party_tensorflow

Expand All @@ -53,8 +56,6 @@ else

python3 -m pip install pip setuptools wheel

export HERMETIC_PYTHON_VERSION=${DOCKER_PYTHON_VERSION}

cd /root_dir
bash /script_dir/build_pip_package_with_bazel.sh
fi
2 changes: 1 addition & 1 deletion ci/tflite-android.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tensorflow/build:2.18-python3.11
FROM us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest

ENV ANDROID_DEV_HOME /android
RUN mkdir -p ${ANDROID_DEV_HOME}
Expand Down
1 change: 0 additions & 1 deletion ci/tflite-py3.10.Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion ci/tflite-py3.11.Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion ci/tflite-py3.12.Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion ci/tflite-py3.9.Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions ci/tflite-py3.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest

0 comments on commit 3510082

Please sign in to comment.