简体   繁体   English

cuDNN 初始化失败

[英]cuDNN failed to initialize

tensorflow.python.framework.errors_impl.UnknownError: 2 root error(s) found.
  (0) Unknown: 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.
     [[{{node conv2d_1/convolution}}]]
     [[norm_dense_1/Softmax/_3605]]
  (1) Unknown: 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.
     [[{{node conv2d_1/convolution}}]]

This error was encountered when trying to run a project from Github.I have tried reinstalling all the programs from scratch in a new conda environment.尝试从 Github 运行项目时遇到此错误。我已尝试在新的 conda 环境中从头开始重新安装所有程序。 Can't seem to figure out whats the problem.似乎无法弄清楚是什么问题。

GPU Zotac gtx 1070 ti GPU Zotac gtx 1070 ti

My current software installation is as follows:-我目前的软件安装如下:-

  • Python 3.6 Python 3.6
  • Tensorflow GPU 1.15 Tensorflow GPU 1.15
  • CUDA 10 CUDA 10
  • cuDNN 7.4 cuDNN 7.4

Ensure you have CUDA Toolkit 7.5 Please open a new session then just try to load tensorflow确保您拥有 CUDA Toolkit 7.5 请打开一个新的 session 然后尝试加载 tensorflow

Are you able to load tensorflow without any error?你能在没有任何错误的情况下加载 tensorflow 吗? Make sure all the ddl cudard64_101.ddl and others are loading.确保正在加载所有 ddl cudard64_101.ddl 和其他文件。 If there are no issues with tensorflow then run the following如果 tensorflow 没有问题,则运行以下命令

physical_devices = tf.config.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(physical_devices[0], True)

Once done try running code again完成后再次尝试运行代码

I had the same output.我有同样的 output。 The problem for me was that i had accidentally set two different environment variables for cuda.我的问题是我不小心为 cuda 设置了两个不同的环境变量。 The PATH had 2 locations for cuda folder and that caused the problem for me. PATH 有 2 个位置用于 cuda 文件夹,这对我来说是个问题。 Removing one of them solved the problem for me.删除其中一个解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让 cudnn 工作? (初始化失败) - How to get cudnn to work ? ( failed to initialize ) 无法创建 cudnn 句柄:CUDNN_STATUS_ALLOC_FAILED,无法获得卷积算法。 这可能是因为 cuDNN 未能初始化 - Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED , Failed to get convolution algorithm. This is probably because cuDNN failed to initialize 获取卷积算法失败。 这可能是因为 cuDNN 初始化失败, - Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, cuDNN 错误 无法获得卷积算法。 这可能是因为 cuDNN 初始化失败 - cuDNN Error Failed to get convolution algorithm. This is probably because cuDNN failed to initialize Google Colab 错误:无法获得卷积算法。这可能是因为 cuDNN 初始化失败 - Google Colab Error : Failed to get convolution algorithm.This is probably because cuDNN failed to initialize CNN error Failed to get convolution algorithm.这可能是因为cuDNN初始化失败, - CNN error Failed to get convolution algorithm.This is probably because cuDNN failed to initialize, Tensorflow 错误。 获取卷积算法失败。 这可能是因为 cuDNN 未能初始化 - Tensorflow error. Failed to get convolution algorithm. This is probably because cuDNN failed to initialize (0) 未知:获取卷积算法失败。 这可能是因为 cuDNN 未能初始化 - (0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize CUDA Tensorflow 版本,nvidia-smi 版本问题。 获取卷积算法失败。 这可能是因为 cuDNN 初始化失败, - CUDA Tensorflow Version ,nvidia-smi version issue. Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, 获取卷积算法失败。 这可能是因为 cuDNN 初始化失败,所以尝试查看是否打印了警告日志消息 - 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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM