apt-get install
bazel python2.7 grpc等必要工具
下载源码
git clone --recurse-submodules
cd serving/tensorflow
./configure 按需配置
bazel build -c opt
编译结果:
生成wheel 安装
bazel build -c opt //tensorflow_serving/tools/pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg/
在tmp下会有类似tensorflow-1.3.0-cp27-cp27mu-linux_x86_64.whl 用pip安装
阅读(1613) | 评论(0) | 转发(0) |