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文件,解压后有两个文件: 放置cudart64_101.dll文件 官网中已经写得很清楚了:
再次运行程序,显示:
2020-10-21 16:29:19.467814: tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
则成功改正错误。