欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try loo

程序员文章站 2022-05-29 17:09:13
...

tensorflow/keras 引入Conv2D报错

tensorflow.python.framework.errors_impl.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. [Op:Conv2D]

解决方案1

import os

os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'

 

相关标签: 排错