登录
注册
写文章
首页
下载APP
会员
IT技术
failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
纵春水东流
关注
赞赏支持
failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
The true answer is to add following line of code:
import os os.environ['CUDA_VISIBLE_DEVICES'] = "0"
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读
更多精彩内容
2003-2014考研真题
**2014真题Directions:Read the following text. Choose the be...
又是夜半惊坐起
阅读 13,456
评论 0
赞 23
rljs
rljs by sennchi Timeline of History Part One The Cognitiv...
sennchi
阅读 12,151
评论 0
赞 10
DNSMASQ
NAME dnsmasq - A lightweight DHCP and caching DNS server....
ximitc
阅读 7,946
评论 0
赞 0
Python Tricks - Patterns for Cleaner Python
Covering Your A** With Assertions Sometimes a genuinely h...
JustToCodeIT
阅读 3,375
评论 0
赞 0
failed call to cuDevicePrimaryCtxRetain:CUDA_ER...
报错信息: 原因: 利用CPU版本的tensorflow时调用了cuda,可能是因为服务器行装了cuda及cudn...
我的章鱼小丸子呢
阅读 3,315
评论 0
赞 0
1赞
2赞
赞赏
手机看全文