TensorFlow gpu加速问题

原网址:http://stackoverflow.com/questions/42011070/on-windows-running-import-tensorflow-generates-no-module-named-pywrap-tenso/42011114#42011114

报错:On Windows, running “import tensorflow” generates No module named “_pywrap_tensorflow” error

解决方法1:

Either error indicates that your system has not installed MSVCP140.DLL, which TensorFlow requires.

To fix this error:

Determine whether MSVCP140.DLL is in your %PATH%.

If MSVCP140.DLL is not in your %PATH%, install the Visual C++ 2015 redistributable (x64 version), which contains this DLL.

解决方法2:

The problem was the cuDNN Library for me - for whatever reason cudnn-8.0-windows10-x64-v6.0 was NOT working - I used cudnn-8.0-windows10-x64-v5.1 - ALL GOOD!My setup working with Win10 64 and the Nvidia GTX780M:

Be sure you have the lib MSVCP140.DLL by checking your system/path - if not get it here

Run the windows installer for python 3.5.3-amd64 from here - DO NOT try newer versions as they probably won't work

Get the cuDNN v5.1 for CUDA 8.0 from here - put it under your users folder or in another known location (you will need this in your path)

Get CUDA 8.0 x86_64 from here

Set PATH vars as expected to point at the cuDNN libs and python (the python path should be added during the python install)

If you run Windows 32 be sure to get the 32 bit versions of the files mentioned above.

亲测第二种方法有效

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值