解决:Tensorflow-gpu中的Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not found
Ref: https://blog.csdn.net/weixin_43786241/article/details/109203995
2020-10-21 16:07:39.297448: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found
2020-10-21 16:07:39.299448: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
运行时,出现了如上错误,(V:显示全部信息 D:显示调试信息 I:显示一般信息 W:显示警告信息 E:显示错误信息)
解决:
去官网下载cudart64_101.dll文件,解压后有两个文件:
对于64位的操作系统,放置cudart64_101.dll文件到C:\Windows\System32\中 (可以不用重启计算机就可以成功)
官网中已经写得很清楚了:
再次运行程序,显示:
2020-10-21 16:29:19.467814: tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
则成功改正错误。
作者:楚千羽
出处:https://www.cnblogs.com/chuqianyu/
本文来自博客园,本文作者:楚千羽,转载请注明原文链接:https://www.cnblogs.com/chuqianyu/p/15792386.html
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文连接,否则保留追究法律责任的权利!