當我們使用 tensorflow 最新版本的時候 ,會出現這樣的錯誤
2020-02-07 20:58:37.344417: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2020-02-07 20:58:37.350291: 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.
鏈接:https://pan.baidu.com/s/1t0rog1mT-wR_5PlvCEQswQ
提取碼:ch3z
1、提取出cudart64_101.dll文件,把文件放到你的系統路徑。它的默認路徑是在:
C:\Windows\System (Windows 95/98/Me),
C:\WINNT\System32 (Windows NT/2000),
C:\Windows\System32 (Windows XP, Vista, 7, 8, 8.1, 10).
在 64位 Windows 上,32位 DLL 文件的默認路徑是
C:\Windows\SysWOW64\,
64 位 DLL 文件在C:\Windows\System32\
。
確保覆蓋已有的全部文件(但保留一個原文件備份)。
重啟電腦。
2、如果問題仍未解決,按以下步驟注冊 DLL 文件:
32 位 DLL 文件用在 32 位 Windows 上,64 位 DLL 文件用在 64 位 Windows 上:
- 打開一個提升權限運行的命令行窗口。
- 具體操作是點擊“開始”,點擊“所有程序”,點擊“附件”,右鍵點擊“命令提示符”,然后點擊“以管理員權限運行”。
- 在 Windows 8/10 中,前往“開始”界面。鍵入“cmd”, Windows 會找到“命令行提示符”。右鍵點擊“命令提示符”,選擇“以管理員權限運行”。
- 如果要求輸入管理員密碼或確認,輸入密碼,或點擊“允許”。
- 輸入 regsvr32 “filename".dll 然后按下回車。
將 32 位 DLL 文件注冊到一台 64 位 Windows 上:
- 按前述方法打開一個提升權限運行的命令行窗口。
- 在命令行中鍵入:
cd c:\windows\syswow64\
- 然后鍵入以下命令並回車:
regsvr32 c:\windows\syswow64\"filename".dll