一、TensorFlow依赖项:
1.bazel-0.15.2(bazel-0.15.2-installer-linux-x86_64.sh)
下载:https://github.com/bazelbuild/bazel/releases?after=0.19.1
安装:
$ sudo ./bazel-0.15.2-installer-linux-x86_64.sh
2.protobuf-3.6.1(protobuf-all-3.6.1.tar.gz):
安装:
二、TensorFlow编译(版本:1.12)
我下载的是1.12版本:https://github.com/tosonw/tensorflow/archive/v1.12.0.tar.gz
解压后命令行进入目录:
$ mkdir build
$ cd build
$ ../configure
Extracting Bazel installation...
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.15.2 installed.
Please specify the location of python. [Default is /home/toson/anaconda3/bin/python]:
Found possible Python library paths:
/home/toson/anaconda3/lib/python3.6/site-packages
/opt/intel/openvino_2019.1.144/python/python3.6
/opt/intel/openvino_2019.1.144/deployment_tools/model_optimizer
/home/toson/compile_libs/caffes/caffe_origin/python
Please input the desired Python library path to use. Default is [/home/toson/anaconda3/lib/python3.6/site-packages]
Do you wish to build Ten