Make sure the device specification refers to a valid device
来源:互联网 发布:软件下载中心哪个好 编辑:程序博客网 时间:2024/06/06 10:40
开始调用
with tf.Session() as sess,tf.device('/gpu:0'):时报错:
InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'init': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/cpu:0 ]. Make sure the device specification refers to a valid device.
解决方法:pip uninstall tensorflow
pip install tensorflow-gpu
下载cudnn v6,把include lib bin三个目录拷贝到下面目录:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\cuda
后来就能用了
阅读全文
0 0
- Make sure the device specification refers to a valid device
- Flash id does not match. Please make sure that the right flash device is selected
- Could not install the app on the device, read the error above for details. Make sure you have an And
- Could not install the app on the device, read the error above for details. Make sure you have an And
- react native 错误:Make sure you have an Android emulator running or a device connected and have set up
- how to change the default mode of a linux device
- How to Accept/Reject the Transfer of a Device
- how to make usb composite device
- Attaching the Filter Device Object to the Target Device Object
- Cannot connect to the vCenter server due to a certificate error. Make sure that the appropriate cert
- How to retrieve the Device Unique ID from android device
- unble to connect to the virtual device
- Silverlight地图出错问题A security exception occured while trying to connect to the REST endpoint.Make sure
- sp_addsegment the specified device is not a database device
- Processing a Request to Remove a Device
- Checking to make sure a SQL Server backup is useable
- The identity used to sign the executable is no longer valid.Please verify that your device’s clock i
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- NKOJ 4087 (SDOI 2017)硬币游戏(高斯消元)
- 《区域经济研究实用方法》---GeoDa在空间数据分析中的应用
- XTU1256 湘潭大学
- 用sql获取数据库中所有的表名的方法
- 关于在Form表单中出现多个Button但是Button失效的问题
- Make sure the device specification refers to a valid device
- 经验没学到,月薪5K的你跳槽到8K又怎样?
- 想快速玩转Axure,同时提升交互能力和产品思维?试试这个1000+人推荐的秘密武器
- Windows C++中__declspec(dllexport)的使用
- 6000字长文,详解黑色产业链的「攻守道」
- 嵌入式软件学习路线参考
- 《TCP/IP详解 卷1》 笔记: TCP的坚持定时器
- MacOS 驱动调试笔记
- JUnit错:java.lang.ClassNotFoundException: com.mogodb.test.test