TensorFlow和keras报错解决 This is probably because cuDNN failed to initialize, so try looking to see if a


在运行程序时遇到一个问题
控制台显示错误:

Loaded runtime CuDNN library: 8.0.4 but source was compiled with: 7.6.5. CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.

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.

Function call stack:
keras_scratch_graph

原因 :

一 :安装的tensorflow版本和keras版本不匹配。

查看tensorflow和keras对应的版本网址:
https://docs.floydhub.com/guides/environments/

利用以下命令行安装相对应的版本即可:

pip install -i http:
  • 10
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值