当前位置:网站首页>解决 cuDNN launch failure 错误
解决 cuDNN launch failure 错误
2022-08-05 11:34:00 【为为为什么】
在神经网络模型推断过程中,报错
Internal: cuDNN launch failure : input shape ([1,3,2048,2048]) node bn_data/FusedBatchNorm,本文记录解决方案。
原因分析
网上有怀疑该问题由BN层引起,去掉BN层可以解决问题TensorFlow实战 InternalError: cuDNN launch failure : input shape(未解决求交流)。 更换cudnn版本也无济于事。 事实上更可能是TensorFlow显存配置的问题(事实上也是缺少证据的,只是按照这个思路可以排除故障,因此该因素应该是最大似然的原因)
解决方案
在代码中加入按需分配显存的配置:
方案1
con = tf.ConfigProto()
con.gpu_options.allow_growth = True
keras.backend.tensorflow_backend.set_session(tf.Session(config=con)) 方案2
os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'原理相同,只是不一样的写法。
边栏推荐
- Android 开发用 Kotlin 编程语言 二 条件控制
- Student Information Management System (first time...)
- 5G NR 系统消息
- 365 days challenge LeetCode1000 questions - Day 050 add a row to the binary tree binary tree
- nyoj1185最大最小值(线段树)
- Learning Deep Compact Image Representations for Visual Tracking
- MMDetection in action: MMDetection training and testing
- Flink Yarn Per Job - 启动TM,向RM注册,RM分配solt
- “蘑菇书”是怎样磨出来的?
- 【硬件架构的艺术】学习笔记(2)同步和复位
猜你喜欢

机器学习——集成学习

Android development with Kotlin programming language II Conditional control

Apache APISIX Ingress v1.5-rc1 发布

2022杭电多校联赛第六场 题解

Gray value and thermal imaging understanding

Flink Yarn Per Job - RM启动SlotManager

TiDB 6.0 Placement Rules In SQL Usage Practice

Nature:猪死亡1小时后,器官再次运转

手把手教你定位线上MySQL慢查询问题,包教包会

五大理由告诉你为什么开发人员选择代码质量静态分析工具Klocwork来实现软件安全
随机推荐
365 days challenge LeetCode1000 questions - Day 050 add a row to the binary tree binary tree
Gao Zelong attended the Boao Global Tourism Ecology Conference to talk about Metaverse and Future Network Technology
冬日里,28℃的爱情
Version Control | Longzhi invites you to go to the GOPS Global Operation and Maintenance Conference to explore the road of large-scale, agile, high-quality and open software development and operation
CenOS MySQL入门及安装
Learning Deep Compact Image Representations for Visual Tracking
官方发布·2022南京智博会定于10月份在新庄国展召开
LeetCode刷题(8)
莅临GOPS大会龙智展位,获取Forrester最新报告:《Forrester Wave:2021年第四季度企业服务管理报告》
一张图理解EOS是什么
PostgreSQL 2022 Report: Rising popularity, open source, reliability and scaling key
丹尼尔·拉瑞莫(BM):EOS的主要开发者
张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来
停电。。。烦烦烦!!!
power failure...Trouble trouble trouble!!!
SonarQube即将亮相第十八届GOPS全球运维大会
提取人脸特征的三种方法
PPOCR 检测器配置文件参数详解
灰度值与热成像理解
hdu1455 Sticks(搜索+剪枝+剪枝+.....+剪枝)