304是什么错误是GPU效果错误

&&&&在根据教程安装好全部的时候,却无情的给我抛了几个错:
1、AttributeError: module 'tensorflow' has no attribute 'device'
&&&&这貌似是我先pip了tensorflow-gpu的包,再添加cuDnn库,好吧,重新来过。
2、ImportError: Could not find 'cudart64_80.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 8.0 from this URL:
&&&&在下载的CUDA的时候,随手下了9.0的,结果只支持8.0.好吧,重新来过。
3、ImportError: Could not find 'cudnn64_6.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Note that installing cuDNN is a separate step from installing CUDA, and this DLL is often found in a different directory from the CUDA DLLs. You may install the necessary DLL by downloading cuDNN 6 from this URL:
&&&&明明看教程的时候写的是5.1版本,我也下的5.1啊,这是为什么?原来是因为我的tensorflow-gpu的版本高于1.3,所以用6.0,好吧,又重新来过。
4、InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'add': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device.
[[Node: add = Add]]
&&&&我的天,这什么鬼东西?我在公司都已经做了一遍的,都没事!还给我弹了下面这个框
难道我的显卡坏了?看了下,没坏。好吧,根据下面改就行。
桌面上空白地方右键,进入NVIDIA面板,然后下图
选择第二个,点击应用,再重启电脑即可,记得重启电脑。
我用的以下代码测试:
import tensorflow as tf
# # 通过tf.device将运算指定到特定的设备上。
with tf.device('/cpu:0'):
a = tf.constant([1.0, 2.0, 3.0], shape=[3], name='a')
b = tf.constant([1.0, 2.0, 3.0], shape=[3], name='b')
with tf.device('/gpu:0'):
# 通过log_device_placement参数来记录运行每一个运算的设备。
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
print(sess.run(c))
阅读(...) 评论()为什么我玩吃鸡的时候GPU占用这么低啊.感觉不对劲啊.求大佬指教【显卡吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:3,097,145贴子:
为什么我玩吃鸡的时候GPU占用这么低啊.感觉不对劲啊.求大佬指教收藏
内存超频一下
110也没啥研究的必要了吧
登录百度帐号29被浏览3,971分享邀请回答3126 条评论分享收藏感谢收起131 条评论分享收藏感谢收起百度题库旨在为考生提供高效的智能备考服务,全面覆盖中小学财会类、建筑工程、职业资格、医卫类、计算机类等领域。拥有优质丰富的学习资料和备考全阶段的高效服务,助您不断前行!
京ICP证号&&
京网文[3号&&
Copyright (C) 2017 Baidu他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)

我要回帖

更多关于 304是什么错误 的文章

 

随机推荐