diff --git a/docker/Dockerfile.ci_gpu b/docker/Dockerfile.ci_gpu index 5d0a642d3f20..73d13007f1d0 100644 --- a/docker/Dockerfile.ci_gpu +++ b/docker/Dockerfile.ci_gpu @@ -85,6 +85,9 @@ RUN bash /install/ubuntu_install_darknet.sh COPY install/ubuntu_install_onnx.sh /install/ubuntu_install_onnx.sh RUN bash /install/ubuntu_install_onnx.sh +COPY install/ubuntu_install_libtorch.sh /install/ubuntu_install_libtorch.sh +RUN bash /install/ubuntu_install_libtorch.sh + COPY install/ubuntu_install_tflite.sh /install/ubuntu_install_tflite.sh RUN bash /install/ubuntu_install_tflite.sh diff --git a/docker/install/ubuntu_install_libtorch.sh b/docker/install/ubuntu_install_libtorch.sh new file mode 100755 index 000000000000..d7eddc85402a --- /dev/null +++ b/docker/install/ubuntu_install_libtorch.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -u +set -o pipefail + +pushd /usr/local/ +wget -q https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcpu.zip +unzip libtorch-cxx11-abi-shared-with-deps-1.11.0+cpu.zip +# now it is in /usr/local/libtorch +popd