基于TensorFlow C++ API 的 gRPC 服务

本文详细介绍了如何在Ubuntu环境下,利用bazel构建工具,一步步安装配置TensorFlow 1.10、CUDA 9.2、cuDNN 7.3.1等依赖,并构建TensorFlow C++ API。接着,通过安装gRPC并获取protobuf文件,展示了如何结合TensorFlow Serving搭建gRPC服务。
摘要由CSDN通过智能技术生成

版本对应关系:

bazel 0.15
tensorflow 1.10
cuda 9.2
cudnn 7.3.1
protobuf 3.6.0
nvidia driver

<https://docs.bazel.build/versions/master/install-ubuntu.html>
1. download the Bazel binary installer named bazel-<version>-installer-linux-x86_64.sh from the Bazel releases page on GitHub(https://github.com/bazelbuild/bazel/releases).
1) wget https://github.com/bazelbuild/bazel/releases/download/0.15.0/bazel-0.15.0-installer-linux-x86_64.sh
2) bash bazel-0.15.0-installer-linux-x86_64.sh

<https://developer.nvidia.com/cuda-downloads>
2. download cuda
1)wget 
2)sudo sh cuda_9.2.148_396.37_linux.run 需要安装driver和cuda

<https://developer.nvidia.com/rdp/cudnn-archive#a-collapse731-92>
3. download cudnn (libcudnn7_7.3.1.20-1+cuda9.2_amd64.deb)
1)注册账号
2)下载“Runtime Library”和“Developer Library”连个deb安装包
3)将上述连个安装包先后安装 sudo dpkg -i libcudnn7-dev

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值