报错详情

Could not load library cudnn_cnn_infer64_8.dll. Error code 126
Please make sure cudnn_cnn_infer64_8.dll is in your library path

可能的原因:没有安装zlib

解决方案

  1. 安装并配置zlib
    下载链接:zlib(最新版本1.2.3,截至2021/12/25)
  2. 找一个地方解压文件夹,在高级系统设置->环境变量->系统变量(注意不是用户变量)->Path中,添加zlibwapi.dll的根目录(注意是根目录,不是文件)
    例如:我将文件解压在"C:\Program Files\NVIDIA GPU Computing
    Toolkit\zlib123dllx64",文件zlibwapi.dll在"zlib123dllx64\dll_x64"下,那么只需在Path中添加"C:\Program
    Files\NVIDIA GPU Computing Toolkit\zlib123dllx64\dll_x64"即可
  3. 重启电脑即可(没重启前很有可能还是提示报错)

最后

似乎网上有关cuda和cudnn的安装教程有很多没有提到需要安装zlib,但在官方页面中明确提到了需要安装zlib
另外如果出现Could not load library xxx的时候也不妨确认一下是不是安装了zlib

GitHub 加速计划 / te / tensorflow
33
4
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:1 个月前 )
4f64a3d5 Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`. This prevents us from stepping into nested fusions. PiperOrigin-RevId: 724311958 3 个月前
aa7e952e Fix a bug in handling negative strides, and add a test case that exposes it. We can have negative strides that are not just -1, e.g. with a combining reshape. PiperOrigin-RevId: 724293790 3 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐