编译tensflow:因为非法指令(吐核)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
编译tensflow:因为⾮法指令(吐核)
intel官⽹
在linux(centos)上从源码安装tensorflow:
来⾃官⽹:
不推荐使⽤源代码构建 TensorFlow。
然⽽,如果上述指令因为 ISA 不受⽀持⽽⽆法运⾏,您随时可使⽤源代码进⾏构建。
使⽤源代码构建 TensorFlow 需要安装 Bazel,相关信息请参考安装 Bazel。
安装说明:
运⾏ TensorFlow 源代码⽬录中的 "./configure
执⾏以下命令创建 pip 程序包,以安装经过优化的 TensorFlow build。
可更改PATH,使其指向特定 GCC 编译器版本:
export PATH=/PATH//bin:$PATH
LD_LIBRARY_PATH 还⽀持全新:
export LD_LIBRARY_PATH=/PATH//lib64:$LD_LIBRARY_PATH
对标记进⾏相应设置,以使⽤英特尔® 数学核⼼函数库(英特尔® MLK)构建 TensorFlow,并传递您希望⽤于编译库的合适指令集:
bazel build --config=mkl -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mavx512f --copt=-mavx512pf --copt=-mavx512cd --copt=-mavx512er //tensorflow/tools/pip_package:build_pip_package 3.安装优化的 TensorFlow wheel
bazel-bin/tensorflow/tools/pip_package/build_pip_package ~/path_to_save_wheel
pip install --upgrade --user ~/path_to_save_wheel /<wheel_name.whl>
其他
使⽤的是python2.7 未测试
oracleLinux 编译
参考地址:
配置yum源后安装python及必须包
yum install -y python3-devel python3-pip
yum install python3-devel g++ unzip zip gcc-c++ patch
##安装 TensorFlow pip 软件包依赖项(如果使⽤虚拟环境,请省略 --user 参数):暂时
pip install -U --user pip six numpy wheel setuptools mock future>=0.17.1
pip install -U --user keras_applications==1.0.6 --no-deps
pip install -U --user keras_preprocessing==1.0.5 --no-deps
##下载离线包及安装
pip3 download six numpy wheel setuptools mock future==0.17.1
pip3 download keras_applications==1.0.6
pip3 download keras_applications==1.0.6 keras_preprocessing==1.0.5
-rw-r--r-- 1 root root 762 Feb 17 15:55 =0.17.1
-rw-r--r-- 1 root root 44277 Feb 17 15:56 Keras_Applications-1.0.6-py2.py3-none-any.whl
-rw-r--r-- 1 root root 30674 Feb 17 15:57 Keras_Preprocessing-1.0.5-py2.py3-none-any.whl
-rw-r--r-- 1 root root 829119 Feb 17 15:56 future-0.17.1.tar.gz
-rw-r--r-- 1 root root 829220 Feb 17 15:55 future-0.18.2.tar.gz
-rw-r--r-- 1 root root 2870576 Feb 17 15:56 h5py-2.10.0-cp36-cp36m-manylinux1_x86_64.whl
-rw-r--r-- 1 root root 28699 Feb 17 15:55 mock-4.0.1-py3-none-any.whl
-rw-r--r-- 1 root root 20143300 Feb 17 15:55 numpy-1.18.1-cp36-cp36m-manylinux1_x86_64.whl
-rw-r--r-- 1 root root 584228 Feb 17 15:55 setuptools-45.2.0-py3-none-any.whl
-rw-r--r-- 1 root root 10938 Feb 17 15:55 six-1.14.0-py2.py3-none-any.whl
-rw-r--r-- 1 root root 26502 Feb 17 15:55 wheel-0.34.2-py2.py3-none-any.whl
安装 Bazel:
到https:///bazelbuild/bazel/releases 下载指定版本bazel-0.15.0-installer-linux-x86_64.sh
参考链接:
ubuntu版本
##download the corresponding .repo file from Fedora COPR and copy it to /etc/yum.repos.d/.
## https:///coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
vbatts-bazel-epel-7.repo
[copr::vbatts:bazel]
name=Copr repo for bazel owned by vbatts
baseurl=https:///results/vbatts/bazel/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https:///results/vbatts/bazel/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
curl -o /etc/yum.repos.d/vbatts-bazel-epel-7.repo https:///coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo ##需要安装jdk1.8.x g++ unzip zip
rpm -ivh jdk-8u221-linux-x64.rpm
##Run the following command:
##yum install bazel
##需要使⽤⼆进制安装bazel yum 安装的版本太⾼
chmod +x bazel-<version>-installer-linux-x86_64.sh
./bazel-<version>-installer-linux-x86_64.sh --user
--user flag installs Bazel to the $HOME/bin directory on your system and sets the .bazelrc path to $HOME/.bazelrc
##设置环境变量
export PATH="$PATH:$HOME/bin"
##查看版本
bazel version
Build label: 0.15.0
下载tensorflow源码
或
来源: tensflow版本分选择
python 库选择:
/usr/lib/python3.6/site-packages
./configure 配置的选择:
[root@wn10aimapap1001 tensorflow-1.10.0]# ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.15.0 installed.
Please specify the location of python. [Default is /usr/bin/python]:
Found possible Python library paths:
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages
Please input the desired Python library path to use. Default is [/usr/lib/python2.7/site-packages]
/usr/lib/python3.6/site-packages
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: n
No jemalloc as malloc support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Amazon AWS Platform support? [Y/n]: n
No Amazon AWS Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]: n
No Apache Kafka Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.
Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.
Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: n
No OpenCL SYCL support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.
Do you wish to download a fresh release of clang? (Experimental) [y/N]: n
Clang will not be downloaded.
Do you wish to build TensorFlow with MPI support? [y/N]: n
No MPI support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: n
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details.
--config=mkl # Build with MKL support.
--config=monolithic # Config for mostly static monolithic build.
Configuration finished
bazel编译报错解决⽰例:
[root@wn10aimapap1001 tensorflow-1.10.0]# bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
Starting local Bazel server and connecting to it...
...............
ERROR: in target '//external:cc_toolchain': no such package '@local_config_cc//': Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_xxxx/6922e28936bf9c1ce50ca7cdbe5953e3/external/bazel_tools/tools/cpp/cc_configure.bzl", line 56
configure_unix_toolchain(repository_ctx, cpu_value, overriden...)
File "/root/.cache/bazel/_bazel_xxxx/6922e28936bf9c1ce50ca7cdbe5953e3/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 477, in configure_unix_toolchain _find_generic(repository_ctx, "gcc", "CC", overriden...)
File "/root/.cache/bazel/_bazel_xxxx/6922e28936bf9c1ce50ca7cdbe5953e3/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 459, in _find_generic
auto_configure_fail(msg)
File "/root/.cache/bazel/_bazel_xxxx/6922e28936bf9c1ce50ca7cdbe5953e3/external/bazel_tools/tools/cpp/lib_cc_configure.bzl", line 109, in auto_configure_fail
fail(("\n%sAuto-Configuration Error:%...)))
Auto-Configuration Error: Cannot find gcc or CC; either correct your path or set the CC environment variable
INFO: Elapsed time: 8.434s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (2 packages loaded)
##############################################################
[root@wn10aimapap1001 tensorflow-1.10.0]# bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
ERROR: /home/ap/xxxx/tensorflow-1.10.0/tensorflow/tools/pip_package/BUILD:123:1: no such package '@png_archive//': Traceback (most recent call last):
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/repo.bzl", line 99
_apply_patch(ctx, ctx.attr.patch_file)
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/repo.bzl", line 64, in _apply_patch
fail("patch command is not found, ple...")
patch command is not found, please install it and referenced by '//tensorflow/tools/pip_package:licenses'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@png_archive//': Traceback (most recent call last):
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/repo.bzl", line 99
_apply_patch(ctx, ctx.attr.patch_file)
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/repo.bzl", line 64, in _apply_patch
fail("patch command is not found, ple...")
patch command is not found, please install it
INFO: Elapsed time: 16.697s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (79 packages loaded)
currently loading: tensorflow/core
#########################################################
[root@wn10aimapap1001 tensorflow-1.10.0]# bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
ERROR: /home/ap/xxxx/tensorflow-1.10.0/third_party/python_runtime/BUILD:5:1: no such package '@local_config_python//': Traceback (most recent call last):
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/py/python_configure.bzl", line 308
_create_local_python_repository(repository_ctx)
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/py/python_configure.bzl", line 272, in _create_local_python_repository
_get_numpy_include(repository_ctx, python_bin)
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/py/python_configure.bzl", line 256, in _get_numpy_include
_execute(repository_ctx, [python_bin, "-c",..."], <2 more arguments>)
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/py/python_configure.bzl", line 55, in _execute
_fail("\n".join([error_msg.strip() if ... ""]))
File "/home/ap/xxxx/tensorflow-1.10.0/third_party/py/python_configure.bzl", line 28, in _fail
fail(("%sPython Configuration Error:%...)))
Python Configuration Error: Problem getting numpy include path.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named numpy
Is numpy installed?
and referenced by '//third_party/python_runtime:headers'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed
INFO: Elapsed time: 5.363s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (146 packages loaded)
currently loading: tensorflow/core/kernels
Fetching https://mirror.bazel.build//google/re2/archive/2018-04-01.tar.gz
#######################
ERROR: /root/.cache/bazel/_bazel_xxxx/6922e28936bf9c1ce50ca7cdbe5953e3/external/protobuf_archive/BUILD:260:1: C++ compilation of rule '@protobuf_archive//:js_embed' failed (Exit 1) gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
##
yum install gcc patch
yum install gcc-c++
复制python 的头⽂件到系统⽬录下
cp /usr/include/python3.6m/* /usr/include/
##多个python版本导致yum 下载问题
bazel依赖
bazel build 时需要更多的依赖,离线时安装⽐较⿇烦,参考如下
离线源码安https:///s_sunnyy/article/details/86074114 装tensorflow:
所有要下载的⽂件见: tensorflow 源代码根⽬录下
WORKSPACE
tensorflow/workspace.bzl
### cd /home/ap/xxxx/tensorflow-1.10.0
grep '"http' WORKSPACE
"https://mirror.bazel.build//bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz",
"https:///bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz", # 2018-04-13
"//models/inception_v1.zip",
"/models/inception_v1.zip",
"//models/object_detection/ssd_mobilenet_v1_android_export.zip",
"/models/object_detection/ssd_mobilenet_v1_android_export.zip",
"//models/mobile_multibox_v1a.zip",
"/models/mobile_multibox_v1a.zip",
"//models/stylize_v1.zip",
"/models/stylize_v1.zip",
"//models/speech_commands_v0.01.zip",
"/models/speech_commands_v0.01.zip",
grep '"http' tensorflow/workspace.bzl
"https://mirror.bazel.build//intel/mkl-dnn/releases/download/v0.14/mklml_lnx_2018.0.3.20180406.tgz",
"https:///intel/mkl-dnn/releases/download/v0.14/mklml_lnx_2018.0.3.20180406.tgz"
"https://mirror.bazel.build//intel/mkl-dnn/releases/download/v0.14/mklml_win_2018.0.3.20180406.zip",
"https:///intel/mkl-dnn/releases/download/v0.14/mklml_win_2018.0.3.20180406.zip"
"https://mirror.bazel.build//intel/mkl-dnn/releases/download/v0.14/mklml_mac_2018.0.3.20180406.tgz",
"https:///intel/mkl-dnn/releases/download/v0.14/mklml_mac_2018.0.3.20180406.tgz"
"https://mirror.bazel.build//intel/mkl-dnn/archive/v0.14.tar.gz",
"https:///intel/mkl-dnn/archive/v0.14.tar.gz",
"https://mirror.bazel.build//abseil/abseil-cpp/archive/9613678332c976568272c8f4a78631a29159271d.tar.gz",
"https:///abseil/abseil-cpp/archive/9613678332c976568272c8f4a78631a29159271d.tar.gz",
"https://mirror.bazel.build//eigen/eigen/get/fd6845384b86.tar.gz",
"https:///eigen/eigen/get/fd6845384b86.tar.gz",
"https://mirror.bazel.build//raspberrypi/tools/archive/0e906ebc527eab1cdbf7adabff5b474da9562e9f.tar.gz",
# "https:///raspberrypi/tools/archive/0e906ebc527eab1cdbf7adabff5b474da9562e9f.tar.gz",
"https://mirror.bazel.build//hfp/libxsmm/archive/1.9.tar.gz",
"https:///hfp/libxsmm/archive/1.9.tar.gz",
"https://mirror.bazel.build//google/or-tools/archive/253f7955c6a1fd805408fba2e42ac6d45b312d15.tar.gz",
# "https:///google/or-tools/archive/253f7955c6a1fd805408fba2e42ac6d45b312d15.tar.gz",
"https://mirror.bazel.build//google/re2/archive/2018-04-01.tar.gz",
"https:///google/re2/archive/2018-04-01.tar.gz",
"https://mirror.bazel.build//GoogleCloudPlatform/google-cloud-cpp/archive/f875700a023bdd706333cde45aee8758b272c357.tar.gz",
"https:///GoogleCloudPlatform/google-cloud-cpp/archive/f875700a023bdd706333cde45aee8758b272c357.tar.gz",
"https://mirror.bazel.build//googleapis/googleapis/archive/f81082ea1e2f85c43649bee26e0d9871d4b41cdb.zip",
"https:///googleapis/googleapis/archive/f81082ea1e2f85c43649bee26e0d9871d4b41cdb.zip",
"https://mirror.bazel.build//google/gemmlowp/archive/38ebac7b059e84692f53e5938f97a9943c120d98.zip",
"https:///google/gemmlowp/archive/38ebac7b059e84692f53e5938f97a9943c120d98.zip",
"https://mirror.bazel.build//google/farmhash/archive/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz",
"https:///google/farmhash/archive/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz",
"http://mirror.bazel.build//google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz",
"https:///google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz",
"https://mirror.bazel.build//pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2",
"/repo/pkgs/nasm/nasm-2.13.03.tar.bz2/sha512/d7a6b4cee8dfd603d8d4c976e5287b5cc542fa0b466ff989b743276a6e28114e64289bf02a7819eca63142a5278aa6eed57773007e5f589e157 "/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2",
"https://mirror.bazel.build//libjpeg-turbo/libjpeg-turbo/archive/1.5.3.tar.gz",
"https:///libjpeg-turbo/libjpeg-turbo/archive/1.5.3.tar.gz",
"https://mirror.bazel.build//glennrp/libpng/archive/v1.6.34.tar.gz",
"https:///glennrp/libpng/archive/v1.6.34.tar.gz",
"https://mirror.bazel.build//2018/sqlite-amalgamation-3240000.zip",
"https:///2018/sqlite-amalgamation-3240000.zip",
"https://mirror.bazel.build//project/giflib/giflib-5.1.4.tar.gz",
"/project/giflib/giflib-5.1.4.tar.gz",
"https://mirror.bazel.build//packages/source/s/six/six-1.10.0.tar.gz",
"https:///packages/source/s/six/six-1.10.0.tar.gz",
"https://mirror.bazel.build//packages/d8/be/c4276b3199ec3feee2a88bc64810fbea8f26d961e0a4cd9c68387a9f35de/astor-0.6.2.tar.gz",
"https:///packages/d8/be/c4276b3199ec3feee2a88bc64810fbea8f26d961e0a4cd9c68387a9f35de/astor-0.6.2.tar.gz",
"https://mirror.bazel.build//packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz",
"https:///packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz",
"https://mirror.bazel.build//packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz",
"https:///packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz",
"https://mirror.bazel.build//abseil/abseil-py/archive/pypi-v0.2.2.tar.gz",
"https:///abseil/abseil-py/archive/pypi-v0.2.2.tar.gz",
"https://mirror.bazel.build//packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/backports.weakref-1.0rc1.tar.gz",
"https:///packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/backports.weakref-1.0rc1.tar.gz",
"https://mirror.bazel.build//2.7/_sources/license.txt",
"https:///2.7/_sources/license.txt",
"https://mirror.bazel.build//google/protobuf/archive/v3.6.0.tar.gz",
"https:///google/protobuf/archive/v3.6.0.tar.gz",
"https://mirror.bazel.build//google/protobuf/archive/v3.6.0.tar.gz",
"https:///google/protobuf/archive/v3.6.0.tar.gz",
"https://mirror.bazel.build//google/protobuf/archive/v3.6.0.tar.gz",
"https:///google/protobuf/archive/v3.6.0.tar.gz",
"https://mirror.bazel.build//google/nsync/archive/1.20.0.tar.gz",
"https:///google/nsync/archive/1.20.0.tar.gz",
"https://mirror.bazel.build//google/googletest/archive/9816b96a6ddc0430671693df90192bbee57108b6.zip",
"https:///google/googletest/archive/9816b96a6ddc0430671693df90192bbee57108b6.zip",
"https://mirror.bazel.build//gflags/gflags/archive/v2.2.1.tar.gz",
"https:///gflags/gflags/archive/v2.2.1.tar.gz",
"https://mirror.bazel.build//pub/pcre/pcre-8.42.tar.gz",
"/pub/pcre/pcre-8.42.tar.gz",
"https://mirror.bazel.build//project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz",
"/project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz",
"/project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz",
"https://mirror.bazel.build/curl.haxx.se/download/curl-7.60.0.tar.gz",
"https://curl.haxx.se/download/curl-7.60.0.tar.gz",
"https://mirror.bazel.build//grpc/grpc/archive/v1.13.0.tar.gz",
"https:///grpc/grpc/archive/v1.13.0.tar.gz",
"https://mirror.bazel.build//antirez/linenoise/archive/c894b9e59f02203dbe4e2be657572cf88c4230c3.tar.gz",
"https:///antirez/linenoise/archive/c894b9e59f02203dbe4e2be657572cf88c4230c3.tar.gz",
"https://mirror.bazel.build//llvm-mirror/llvm/archive/bd8c8d759852871609ba2e4e79868420f751949d.tar.gz",
"https:///llvm-mirror/llvm/archive/bd8c8d759852871609ba2e4e79868420f751949d.tar.gz",
"https://mirror.bazel.build//LMDB/lmdb/archive/LMDB_0.9.22.tar.gz",
"https:///LMDB/lmdb/archive/LMDB_0.9.22.tar.gz",
"https://mirror.bazel.build//open-source-parsers/jsoncpp/archive/1.8.4.tar.gz",
"https:///open-source-parsers/jsoncpp/archive/1.8.4.tar.gz",
"https://mirror.bazel.build//google/boringssl/archive/a0fb951d2a26a8ee746b52f3ba81ab011a0af778.tar.gz",
"https:///google/boringssl/archive/a0fb951d2a26a8ee746b52f3ba81ab011a0af778.tar.gz",
"https://mirror.bazel.build//zlib-1.2.11.tar.gz",
"https:///zlib-1.2.11.tar.gz",
"https://mirror.bazel.build/www.kurims.kyoto-u.ac.jp/~ooura/fft.tgz",
"http://www.kurims.kyoto-u.ac.jp/~ooura/fft.tgz",
"https://mirror.bazel.build//google/snappy/archive/1.1.7.tar.gz",
"https:///google/snappy/archive/1.1.7.tar.gz",
"https://mirror.bazel.build//nvidia/nccl/archive/03d856977ecbaac87e598c0c4bafca96761b9ac7.tar.gz",
"https:///nvidia/nccl/archive/03d856977ecbaac87e598c0c4bafca96761b9ac7.tar.gz",
"https://mirror.bazel.build//edenhill/librdkafka/archive/v0.11.4.tar.gz",
"https:///edenhill/librdkafka/archive/v0.11.4.tar.gz",
"https://mirror.bazel.build//aws/aws-sdk-cpp/archive/1.3.15.tar.gz",
"https:///aws/aws-sdk-cpp/archive/1.3.15.tar.gz",
"https://mirror.bazel.build//maven2/junit/junit/4.12/junit-4.12.jar",
"/maven2/junit/junit/4.12/junit-4.12.jar",
"/maven2/junit/junit/4.12/junit-4.12.jar",
"https://mirror.bazel.build//maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar",
"/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar",
"/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar",
"https://mirror.bazel.build//jemalloc/jemalloc/archive/4.4.0.tar.gz",
"https:///jemalloc/jemalloc/archive/4.4.0.tar.gz",
"http://mirror.bazel.build//maven2/com/google/testing/compile/compile-testing/0.11/compile-testing-0.11.jar",
"/maven2/com/google/testing/compile/compile-testing/0.11/compile-testing-0.11.jar",
"http://mirror.bazel.build//maven2/com/google/truth/truth/0.32/truth-0.32.jar",
"/maven2/com/google/truth/truth/0.32/truth-0.32.jar",
"http://mirror.bazel.build//maven2/org/checkerframework/checker-qual/2.4.0/checker-qual-2.4.0.jar",
"/maven2/org/checkerframework/checker-qual/2.4.0/checker-qual-2.4.0.jar",
"http://mirror.bazel.build//maven2/com/squareup/javapoet/1.9.0/javapoet-1.9.0.jar",
"/maven2/com/squareup/javapoet/1.9.0/javapoet-1.9.0.jar",
"https://mirror.bazel.build//google/pprof/archive/c0fb62ec88c411cc91194465e54db2632845b650.tar.gz",
"https:///google/pprof/archive/c0fb62ec88c411cc91194465e54db2632845b650.tar.gz",
"https://mirror.bazel.build//NVlabs/cub/archive/1.8.0.zip",
"https:///NVlabs/cub/archive/1.8.0.zip",
"https://mirror.bazel.build//cython/cython/archive/0.28.4.tar.gz",
"https:///cython/cython/archive/0.28.4.tar.gz",
"https://mirror.bazel.build//bazelbuild/bazel-toolchains/archive/37acf1841ab1475c98a152cb9e446460c8ae29e1.tar.gz",
"https:///bazelbuild/bazel-toolchains/archive/37acf1841ab1475c98a152cb9e446460c8ae29e1.tar.gz",
"https://mirror.bazel.build//intel/ARM_NEON_2_x86_SSE/archive/0f77d9d182265259b135dad949230ecbf1a2633d.tar.gz",
"https:///intel/ARM_NEON_2_x86_SSE/archive/0f77d9d182265259b135dad949230ecbf1a2633d.tar.gz",
"https://mirror.bazel.build//google/flatbuffers/archive/v1.9.0.tar.gz",
"https:///google/flatbuffers/archive/v1.9.0.tar.gz",
"https:///google/double-conversion/archive/3992066a95b823efc8ccc1baf82a1cfc73f6e9b8.zip",
"https://mirror.bazel.build///models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip",
"https:////models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip",
"https://mirror.bazel.build///models/tflite/mobilenet_ssd_tflite_v1.zip",
"https:////models/tflite/mobilenet_ssd_tflite_v1.zip",
"https://mirror.bazel.build///models/tflite/coco_ssd_mobilenet_v1_0.75_quant_2018_06_29.zip",
"https:////models/tflite/coco_ssd_mobilenet_v1_0.75_quant_2018_06_29.zip",
"https://mirror.bazel.build///models/tflite/conv_actions_tflite.zip",
"https:////models/tflite/conv_actions_tflite.zip",
"https://mirror.bazel.build///models/tflite/smartreply_1.0_2017_11_01.zip",
"https:////models/tflite/smartreply_1.0_2017_11_01.zip"
"https://mirror.bazel.build///data/ovic.zip",
"https:////data/ovic.zip",
"https://mirror.bazel.build//bazelbuild/rules_android/archive/v0.1.1.zip",
"https:///bazelbuild/rules_android/archive/v0.1.1.zip",
####未去重
https://mirror.bazel.build//bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz
https:///bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz
//models/inception_v1.zip
/models/inception_v1.zip
//models/object_detection/ssd_mobilenet_v1_android_export.zip
/models/object_detection/ssd_mobilenet_v1_android_export.zip
//models/mobile_multibox_v1a.zip
/models/mobile_multibox_v1a.zip
//models/stylize_v1.zip
/models/stylize_v1.zip
//models/speech_commands_v0.01.zip
/models/speech_commands_v0.01.zip
https://mirror.bazel.build//intel/mkl-dnn/releases/download/v0.14/mklml_lnx_2018.0.3.20180406.tgz
https:///intel/mkl-dnn/releases/download/v0.14/mklml_lnx_2018.0.3.20180406.tgz
https://mirror.bazel.build//intel/mkl-dnn/releases/download/v0.14/mklml_win_2018.0.3.20180406.zip
https:///intel/mkl-dnn/releases/download/v0.14/mklml_win_2018.0.3.20180406.zip
https://mirror.bazel.build//intel/mkl-dnn/releases/download/v0.14/mklml_mac_2018.0.3.20180406.tgz
https:///intel/mkl-dnn/releases/download/v0.14/mklml_mac_2018.0.3.20180406.tgz
https://mirror.bazel.build//intel/mkl-dnn/archive/v0.14.tar.gz
https:///intel/mkl-dnn/archive/v0.14.tar.gz
https://mirror.bazel.build//abseil/abseil-cpp/archive/9613678332c976568272c8f4a78631a29159271d.tar.gz
https:///abseil/abseil-cpp/archive/9613678332c976568272c8f4a78631a29159271d.tar.gz
https://mirror.bazel.build//eigen/eigen/get/fd6845384b86.tar.gz
https:///eigen/eigen/get/fd6845384b86.tar.gz
https://mirror.bazel.build//raspberrypi/tools/archive/0e906ebc527eab1cdbf7adabff5b474da9562e9f.tar.gz
https:///raspberrypi/tools/archive/0e906ebc527eab1cdbf7adabff5b474da9562e9f.tar.gz
https://mirror.bazel.build//hfp/libxsmm/archive/1.9.tar.gz
https:///hfp/libxsmm/archive/1.9.tar.gz
https://mirror.bazel.build//google/or-tools/archive/253f7955c6a1fd805408fba2e42ac6d45b312d15.tar.gz
https:///google/or-tools/archive/253f7955c6a1fd805408fba2e42ac6d45b312d15.tar.gz
https://mirror.bazel.build//google/re2/archive/2018-04-01.tar.gz
https:///google/re2/archive/2018-04-01.tar.gz
https://mirror.bazel.build//GoogleCloudPlatform/google-cloud-cpp/archive/f875700a023bdd706333cde45aee8758b272c357.tar.gz
https:///GoogleCloudPlatform/google-cloud-cpp/archive/f875700a023bdd706333cde45aee8758b272c357.tar.gz
https://mirror.bazel.build//googleapis/googleapis/archive/f81082ea1e2f85c43649bee26e0d9871d4b41cdb.zip
https:///googleapis/googleapis/archive/f81082ea1e2f85c43649bee26e0d9871d4b41cdb.zip
https://mirror.bazel.build//google/gemmlowp/archive/38ebac7b059e84692f53e5938f97a9943c120d98.zip
https:///google/gemmlowp/archive/38ebac7b059e84692f53e5938f97a9943c120d98.zip
https://mirror.bazel.build//google/farmhash/archive/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz
https:///google/farmhash/archive/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz
http://mirror.bazel.build//google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz
https:///google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz
https://mirror.bazel.build//pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2
/repo/pkgs/nasm/nasm-2.13.03.tar.bz2/sha512/d7a6b4cee8dfd603d8d4c976e5287b5cc542fa0b466ff989b743276a6e28114e64289bf02a7819eca63142a5278aa6eed57773007e5f589e15768e645 /pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2
https://mirror.bazel.build//libjpeg-turbo/libjpeg-turbo/archive/1.5.3.tar.gz
https:///libjpeg-turbo/libjpeg-turbo/archive/1.5.3.tar.gz
https://mirror.bazel.build//glennrp/libpng/archive/v1.6.34.tar.gz
https:///glennrp/libpng/archive/v1.6.34.tar.gz
https://mirror.bazel.build//2018/sqlite-amalgamation-3240000.zip
https:///2018/sqlite-amalgamation-3240000.zip
https://mirror.bazel.build//project/giflib/giflib-5.1.4.tar.gz
/project/giflib/giflib-5.1.4.tar.gz
https://mirror.bazel.build//packages/source/s/six/six-1.10.0.tar.gz
https:///packages/source/s/six/six-1.10.0.tar.gz
https://mirror.bazel.build//packages/d8/be/c4276b3199ec3feee2a88bc64810fbea8f26d961e0a4cd9c68387a9f35de/astor-0.6.2.tar.gz
https:///packages/d8/be/c4276b3199ec3feee2a88bc64810fbea8f26d961e0a4cd9c68387a9f35de/astor-0.6.2.tar.gz
https://mirror.bazel.build//packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz
https:///packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz
https://mirror.bazel.build//packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
https:///packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
https://mirror.bazel.build//abseil/abseil-py/archive/pypi-v0.2.2.tar.gz
https:///abseil/abseil-py/archive/pypi-v0.2.2.tar.gz
https://mirror.bazel.build//packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/backports.weakref-1.0rc1.tar.gz
https:///packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/backports.weakref-1.0rc1.tar.gz
https://mirror.bazel.build//2.7/_sources/license.txt
https:///2.7/_sources/license.txt
https://mirror.bazel.build//google/protobuf/archive/v3.6.0.tar.gz
https:///google/protobuf/archive/v3.6.0.tar.gz
https://mirror.bazel.build//google/protobuf/archive/v3.6.0.tar.gz
https:///google/protobuf/archive/v3.6.0.tar.gz
https://mirror.bazel.build//google/protobuf/archive/v3.6.0.tar.gz
https:///google/protobuf/archive/v3.6.0.tar.gz
https://mirror.bazel.build//google/nsync/archive/1.20.0.tar.gz
https:///google/nsync/archive/1.20.0.tar.gz
https://mirror.bazel.build//google/googletest/archive/9816b96a6ddc0430671693df90192bbee57108b6.zip
https:///google/googletest/archive/9816b96a6ddc0430671693df90192bbee57108b6.zip
https://mirror.bazel.build//gflags/gflags/archive/v2.2.1.tar.gz
https:///gflags/gflags/archive/v2.2.1.tar.gz
https://mirror.bazel.build//pub/pcre/pcre-8.42.tar.gz
/pub/pcre/pcre-8.42.tar.gz
https://mirror.bazel.build//project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz
/project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz
/project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz
https://mirror.bazel.build/curl.haxx.se/download/curl-7.60.0.tar.gz
https://curl.haxx.se/download/curl-7.60.0.tar.gz
https://mirror.bazel.build//grpc/grpc/archive/v1.13.0.tar.gz
https:///grpc/grpc/archive/v1.13.0.tar.gz
https://mirror.bazel.build//antirez/linenoise/archive/c894b9e59f02203dbe4e2be657572cf88c4230c3.tar.gz
https:///antirez/linenoise/archive/c894b9e59f02203dbe4e2be657572cf88c4230c3.tar.gz
https://mirror.bazel.build//llvm-mirror/llvm/archive/bd8c8d759852871609ba2e4e79868420f751949d.tar.gz
https:///llvm-mirror/llvm/archive/bd8c8d759852871609ba2e4e79868420f751949d.tar.gz
https://mirror.bazel.build//LMDB/lmdb/archive/LMDB_0.9.22.tar.gz
https:///LMDB/lmdb/archive/LMDB_0.9.22.tar.gz
https://mirror.bazel.build//open-source-parsers/jsoncpp/archive/1.8.4.tar.gz
https:///open-source-parsers/jsoncpp/archive/1.8.4.tar.gz
https://mirror.bazel.build//google/boringssl/archive/a0fb951d2a26a8ee746b52f3ba81ab011a0af778.tar.gz
https:///google/boringssl/archive/a0fb951d2a26a8ee746b52f3ba81ab011a0af778.tar.gz
https://mirror.bazel.build//zlib-1.2.11.tar.gz
https:///zlib-1.2.11.tar.gz
https://mirror.bazel.build/www.kurims.kyoto-u.ac.jp/~ooura/fft.tgz
http://www.kurims.kyoto-u.ac.jp/~ooura/fft.tgz
https://mirror.bazel.build//google/snappy/archive/1.1.7.tar.gz
https:///google/snappy/archive/1.1.7.tar.gz
https://mirror.bazel.build//nvidia/nccl/archive/03d856977ecbaac87e598c0c4bafca96761b9ac7.tar.gz
https:///nvidia/nccl/archive/03d856977ecbaac87e598c0c4bafca96761b9ac7.tar.gz
https://mirror.bazel.build//edenhill/librdkafka/archive/v0.11.4.tar.gz
https:///edenhill/librdkafka/archive/v0.11.4.tar.gz
https://mirror.bazel.build//aws/aws-sdk-cpp/archive/1.3.15.tar.gz。