[英]Tensorflow serving GPU using REST API and SSL self certificate
I am trying to install TensorFlow-gpu with REST API in Centos 7 Docker container. 我正在尝试在Centos 7 Docker容器中使用REST API安装TensorFlow-gpu。 But I am unable to find an exact procedure for this.
但我无法为此找到确切的过程。 Do I need to install following dependencies?
我需要安装以下依赖项吗?
I haven't started yet to build tensorflow serving using GPU. 我尚未开始使用GPU构建Tensorflow服务。 I m in the middle of research stage ~ in this process in every article showing related to Ubuntu installation and m trying to install.in centos 7 .. so I don't have any docker file ..
我正处于研究阶段〜在此过程中,每篇文章均显示与Ubuntu安装相关的信息,并且我试图在centos 7中安装install ..,所以我没有任何docker文件..
Hope this may help you and me to get solution . 希望这可以帮助您和我获得解决方案。
Here is what I use to build a tensorflow-serving-runtime docker image. 这是我用来构建一个tensorflow-serving-runtime docker镜像的东西。
FROM nvidia/cuda:9.0-cudnn7-runtime-centos7
ARG TF_VERSION=1.9.0
RUN yum install -y \
yum-plugin-ovl \
libgomp \
ca-certificates \
zip \
unzip \
curl \
&& \
yum clean all
WORKDIR /usr/
RUN curl -sSL -o /usr/nccl_2.2.13-1-cuda9.0_x86_64.tgz http://some-of-my-net-disk/tensorflow-serving/lib/nccl_2.2.13-1-cuda9.0_x86_64.tgz && \ # Change your way to get nccl library here
tar -xvf nccl_2.2.13-1-cuda9.0_x86_64.tgz &&\
rm -f nccl_2.2.13-1-cuda9.0_x86_64.tgz
ENV LD_LIBRARY_PATH /usr/nccl_2.2.13-1+cuda9.0_x86_64/lib/:${LD_LIBRARY_PATH}
# Change your way to get tensorflow_model_server here
WORKDIR /serving
RUN curl -sSL -o /usr/local/bin/tensorflow_model_server http://some-of-my-net-disk/tensorflow-serving/bin/tf-serving-${TF_VERSION}/tensorflow_model_server_gpu-centos &&\
chmod u+x /usr/local/bin/tensorflow_model_server
For me, this worked fine. 对我来说,这很好。 Hope it helps.
希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.