window10下安装Theano-GPU与Tensorflow-GPU(提供cuda8.0,cudnn6.0下载)

系统环境:win10 64bit

cuda 版本:cuda_8.0.44_win10

cudnn 版本:cudnn-8.0-windows10-x64-v6.0 ()

theano 版本:0.9

tensorflow 版本:1.3

visual studio:VS 2013

一、安装VS2013

      我安装的是载64位版本后就是一路下一步、确定就行,记住安装位置就可以了,我这里的安装目录是我这里的安装目录是D:\VS2013:

接着右键我的电脑-》属性-》高级系统设置-》环境变量,之后编辑系统变量Path,加入两个路径D:\software\VS2013\VC\bin和D:\software\VS2013\Common7\IDE,如图:

      这里安装的VS好像没要求什么community版本或者professional版本,我网上随便挑了个免费的http://www.iplaysoft.com/vs2013.html

二、安装cuda8.0

       到官网上下载cuda,并一路下一步+确定就好了。

   下载地址为https://developer.nvidia.com/cuda-download

        但是,官网在这安装的这段时间出了问题,下载不到8.0版本的,只能下载到cuda9.0版本的,9.0的我已经试过了问题报错无法正常使用,所以还是使用8.0版本吧,网上找了好久终于找到了cuda8.0版本的,共享一下

        http://pan.baidu.com/s/1mh7B0Zu

三、CUDNN

        CUDNN要6.0版本的,下载后解压,将里面的文件(如下图)复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0(这是我的安装目录,也是默认的安装目录)相应的文件夹下,注意,是将这三个文件夹里面的文件复制到你安装目录那里相对应的文件夹里面,而不是将解压出来的文件夹替换掉安装文件里面的文件夹。

       

         共享下cudnn6.0t的云盘资源:http://pan.baidu.com/s/1c13NTmw

四、安装anaconda

      这一步不详说,一路NEXT网上教程也不少

五、安装Theano与Tensorflow

     Theano:

           conda install mingw libpython   #没有mingw包你是安装不了Theano的
     pip install theano 

    

     Tensorflow:

         pip isntall tensorflow-gpu

六、遇到问题

        网上最常见的问题,ModuleNotFoundError: No module named '_pywrap_tensorflow_internal',其实就是cuda版本与cudnn版本对不上,建议8.0对应cudnn6.0版本,版本对上后基本没什么问题




Reference:

         http://blog.csdn.net/weixin_36368407/article/details/54177380

         http://www.jianshu.com/p/c245d46d43f0

         http://blog.csdn.net/stormragewang/article/details/51261465

         http://www.cnblogs.com/zhangjianheng/p/6215529.html

         http://blog.csdn.net/xierhacker/article/details/51858903

       

NVIDIA® cuDNN is a GPU-accelerated library of primitives for deep neural networks. cuDNN是一个对DNN的GPU加速库。他提供高度可调整的在DNN中的常用的例程实现。 It provides highly tuned implementations of routines arising frequently in DNN applications: 常用语前向后向卷积网络,包括交叉相关。Convolution forward and backward, including cross-correlation 前像后向pooling。Pooling forward and backward 前向后向softmax。Softmax forward and backward 前向后向神经元激活。Neuron activations forward and backward Rectified linear (ReLU) Hyperbolic tangent (TANH) Tensor transformation functions LRN, LCN and batch normalization forward and backward cuDNN’s convolution routines aim for performance competitive with the fastest GEMM (matrix multiply) based implementations of such routines while using significantly less memory. cuDNN突出可定制的数据布局,支持灵活的维数排序,跨步,4D子区域for 4D张量作为输入输出。 cuDNN features customizable data layouts, supporting flexible dimension ordering, striding, and subregions for the 4D tensors used as inputs and outputs to all of its routines. This flexibility allows easy integration into any neural network implementation and avoids the input/output transposition steps sometimes necessary with GEMM-based convolutions. cuDNN offers a context-based API that allows for easy multithreading and (optional) interoperability with CUDA streams. cuDNN提供一种基于上下文的API,允许简单的多线程和CDUA流的互用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值