【已解决】UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to ini
jupyter运行有如下问题
UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
两种原因:
原因一.cudnn版本不匹配
原因二、显卡内存分配不足
解决方案也有三种:
方案一:
降级tensorflow版本
pip install --upgrade tensorflowgpu==1.8.0
https://blog.csdn.net/loovelj/article/details/84995149?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param
tensorflow版本降至1.9.0
方案二:
在代码里增加显卡内存自动分配
同样也有两种做法:
方法1.在代码块首部加入
import osos.environ['CUDA_VISIBLE_DEVICES'] = '/gpu:0'
方法2
在代码块首部加入
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSessionconfig = ConfigProto()
config.gpu_options.allow_growth = True
session = InteractiveSession(config=config)
方法3
//这两句加在sess = tf.Session()前
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
//在session内增加config = config
sess = tf.Session(config = config)
【已解决】UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to ini相关推荐
- 解决UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initia
解决UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initia ...
- UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to
UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initiali ...
- tensorflow卷积报错Failed to get convolution algorithm. This is probably because cuDNN failed t
tensorflow卷积报错Failed to get convolution algorithm. This is probably because cuDNN failed t 说明:环境是ten ...
- 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 目前版本的Tensor ...
- UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initial
遇到这个问题除了网上说的加代码以外 还可以关闭其他占用显卡的程序,重启pycharm再次运行, 一般就解决问题.
- Failed to get convolution algorithm.This is probably because cuDNN failed to initialize
报错原因: 内存分配出现了问题 解决方案: 在代码前加上如下代码 import tensorflow as tf gpus = tf.config.list_physical_devices(&quo ...
- [tf] Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initial
使用 tf1 进行训练时,出现这个问题,原因是 GPU 显存不足(当时有别的程序正在使用 GPU)
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize,
关于这个错误,这个帖子给出了完善的解释 https://stackoverflow.com/questions/53698035/failed-to-get-convolution-algorithm ...
- tensorflow出现UnknownError: Failed to get convolution algorithm. This is probably because cuDNN faile
错误: tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This ...
最新文章
- 聊聊Oracle 11g的Snapshot Standby Database(上)
- Fundamental Research:根系分泌物通过调控土壤微生物影响碳周转的机理
- 有趣|“手工耿”史诗级大作:可以横着走的概念车!罗永浩点赞,网友喊话雷军投资...
- python中json模块博客园_python的json模块
- pgadmin连接服务器失败_增值税发票税控软件:连接服务器失败是否使用离线文件进行更新?...
- LPV(Light Propagation Volumes)
- 深入解析互联网协议的原理
- xgene:肿瘤相关基因 EGFR,,Her2,,TP53,,ALK
- 发动机压缩比怎么计算公式_加几号油它说的算 解析发动机压缩比奥秘
- JAVA 文件分割工具类
- OpenJudge -6047 :分蛋糕
- 如何克服学习过程中的焦虑?
- 数组下标越界可能出现的问题
- 如何正确对用户密码进行加密?
- 《Python编程 从入门到实践》 一、基础知识 第六章 字典
- Learning diary
- 前端CSS实现八卦图,三角形
- 谢希仁——计算机网络——课堂笔记
- GBase 8c 数据导入-错误处理
- 别找了,这才是你要的财务预算表