[英]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:-我目前的软件安装如下:-
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.