【发布时间】:2018-08-05 11:14:14
【问题描述】:
我的笔记本电脑上有一块 NVIDIA GeForce 940mx GDDR5 2GB 的 GPU。我想使用支持 GPU 的 TensorFlow。
我尝试了从链接安装 tensorflow 的步骤 https://www.tensorflow.org/install/install_windows
我已经安装了:
CUDA 9.0 工具包以及所有三个补丁更新可在 https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
来自https://developer.nvidia.com/rdp/cudnn-download的 CUDA 工具包 9.0 的 cuDNN 7.1.4
pip install tensorflow-gpu
在导入张量流时使用:
import tensorflow as tf
我遇到了一个错误:
ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit
我在 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin' 中有那个文件,并且我的系统环境路径变量也已配置到此目录,还有什么问题?
【问题讨论】:
-
请阅读Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - 总结是这不是解决志愿者的理想方式,并且可能会适得其反。请不要将此添加到您的问题中。
-
对不起@halfer,如果我冒犯了你,我问的方式有点匆忙/要求,我同意。
-
我没有被冒犯。我热衷于劝阻乞讨的原因是它可以非常容易控制情绪,就像一个人在街上要钱一样。这里有很多善良的人已经在这里度过了很多空闲时间,他们不需要任何压力来承担超出他们精力的帮助。它们是宝贵的资源,社区应该照顾它们。
-
and the community should look after them...,同意...这也意味着当有人回答并被否决时,就像我在下面的回答一样,投反对票的人应该温和地解释一下投反对票的原因。这个功能应该实现https://meta.stackexchange.com/questions/135/encouraging-people-to-explain-downvotes
标签: python tensorflow machine-learning cudnn