Windows环境源码构建Tensorflow

配置如下:

win10;

python3.6;

tensorflow1.12.0;

cuda9.0;

cuNN7.1.4;

GetFoce GTX1070;

bazel1.15;

编译流程参见:

https://tensorflow.google.cn/install/source_windows#install_bazel

https://medium.com/@amsokol.com/update-2-how-to-build-and-install-tensorflow-gpu-cpu-for-windows-from-source-code-using-bazel-61c26553f7e8

遇到的问题:

(1)ERROR: Config value cuda is not defined in any .rc file    https://github.com/tensorflow/tensorflow/issues/23401

  解决办法: https://github.com/tensorflow/tensorflow/pull/25114/commits/5b6c8e20ad516ca2e73bc28ca106da8f8ca83bd1

(2)与这个链接里同样位置的错误:https://github.com/tensorflow/tensorflow/issues/25137

   解决办法:

         首先是来自eigen的bug

Windows环境源码构建Tensorflow_第1张图片

接下来:

https://github.com/tensorflow/tensorflow/commit/bb479118c9fed7be0186f98a3939ec28b162f2fe

 

经过50分钟的等待,tensorflow安装成功。*★,°*:.☆( ̄▽ ̄)/$:*.°★* 。

                        

 

你可能感兴趣的:(Windows环境源码构建Tensorflow)