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文件,解压后有两个文件:

解决:Tensorflow-gpu中的Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not found

对于64位的操作系统,放置cudart64_101.dll文件到C:\Windows\System32\中 (可以不用重启计算机就可以成功)
官网中已经写得很清楚了:

解决:Tensorflow-gpu中的Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not found

再次运行程序,显示:

2020-10-21 16:29:19.467814: tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll

则成功改正错误。