Failed to get convolution algorithm. This is probably because cuDNN failed to initialize解决办法
2020-05-31 18:46
841 查看
配置:
Tensorflow-gpu 2.0 alpha
CUDA 10.0 CUDNN7.5
WINDOWS 10
Python 3.6
刚开始跑一般的神经网络出现了个这么个问题,直接用下面链接的方法
https://blog.csdn.net/weixin_45783552/article/details/103025198?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1
即在开头加入下面几句代码
physical_devices = tf.config.experimental.list_physical_devices('GPU') assert len(physical_devices) > 0, "Not enough GPU hardware devices available" tf.config.experimental.set_memory_growth(physical_devices[0], True)
如果你是1.X的版本
有各种其他朋友写的方法,很好用
另外可能原因:
如果你是Jupyter notebook写的
更大的可能性是你同时打开了好几个文件
由于自己后来跑卷积神经网络,它在计算卷积的时候又报了这么个错,但之前的解决方法行不通
一种方法:
import os
os.environ[‘CUDA_VISIBLE_DEVICES’] = ‘/gpu:0’
直接不用GPU跑,省事
自己的解决方法
升级了一下CUDNN版本,升成了7.6.1,再加上了前面的那段代码,完事
相关文章推荐
- 解决Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- 解决UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initia
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to
- tensorflow出现 this is probably because cuDNN failed to initialize, so try looking to see if a……问题
- tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is p
- "Failed to update database "c:\inetpub\wwwroot\WebSite1\App_Data\ASPNETDB.MDF" because the database is read-only."的解决办法
- "Failed to update database "c:\inetpub\wwwroot\WebSite1\App_Data\ASPNETDB.MDF" because the database is read-only."的解决办法
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- session_start(): Failed to initialize storage module 解决办法
- session_start(): Failed to initialize storage module 解决办法
- Anaconda3使用PySide2发生This application failed to start because no Qt platform...的解决方法
- 打开MySQL数据库登录时,出现ERROR 1103(HY000):Host‘localhost’is not allowed to connect to this MySQL server解决办法
- Host is not allowed to connect to this MySQL server 和 access denied for user 'root'@'localhost' 解决办法
- mac eclipse报错:failed to get the required adt version number from the sdk的解决办法
- mac eclipse报错:failed to get the required adt version number from the sdk的解决办法
- Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法