当前位置:网站首页>解决 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'
原理相同,只是不一样的写法。
边栏推荐
- Http-Sumggling缓存漏洞分析
- Three methods for extracting facial features
- hdu1455 Sticks (search+pruning+pruning+.....+pruning)
- Integration testing of software testing
- 解决2022Visual Studio中scanf返回值被忽略问题
- shell编程流程控制练习
- Android development with Kotlin programming language - basic data types
- 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
- 【硬件架构的艺术】学习笔记(3)处理多个时钟
- 多业务模式下的交易链路探索与实践
猜你喜欢
knife4j
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
智源社区AI周刊No.92:“计算复杂度”理论奠基人Juris Hartmanis逝世;美国AI学生九年涨2倍,大学教师短缺;2022智源大会观点报告发布[附下载]
PostgreSQL 2022 Report: Rising popularity, open source, reliability and scaling key
Apache APISIX Ingress v1.5-rc1 released
Four, kubeadm single master
TiDB 6.0 Placement Rules In SQL 使用实践
莅临GOPS大会龙智展位,获取Forrester最新报告:《Forrester Wave:2021年第四季度企业服务管理报告》
#yyds干货盘点#【愚公系列】2022年08月 Go教学课程 001-Go语言前提简介
小红的aba子序列(离散化、二分、dp维护区间最短)
随机推荐
Exploration and practice of transaction link under multi-service mode
苹果Meta都在冲的Pancake技术,中国VR团队YVR竟抢先交出产品答卷
微信小程序标题栏封装
CenOS MySQL入门及安装
Http-Sumggling缓存漏洞分析
智源社区AI周刊No.92:“计算复杂度”理论奠基人Juris Hartmanis逝世;美国AI学生九年涨2倍,大学教师短缺;2022智源大会观点报告发布[附下载]
2022杭电多校联赛第六场 题解
Android development with Kotlin programming language II Conditional control
冬日里,28℃的爱情
安全软件Avast与赛门铁克诺顿NortonLifeLock合并获英国批准
[7.29-8.5] Review of wonderful technical blog posts in the writing community
Gao Zelong attended the Boao Global Tourism Ecology Conference to talk about Metaverse and Future Network Technology
Flink Yarn Per Job - JobManger 申请 Slot
Support Vector Machine SVM
Naive bayes
How to write a blog with Golang - Milu.blog development summary
EOS的共识机制与区块生成
如何用Golang来手写一个Blog - Milu.blog 开发总结
How about Ping An Mengwa Card Insurance?Let parents read a few ways to identify products
Google启动通用图像嵌入挑战赛