為什么tensorflow沒有gpu的時候會出現這個錯誤,但是模型還是可以正常運行。
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
錯誤:-
2022-02-26 10:47:12.726011: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library invcuda.dll'; dlerror: nvcuda.dll not found
2022-02-26 10:47:12.727262: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
uj5u.com熱心網友回復:
為什么Tensorflow沒有GPU的時候會出現這個錯誤,但是模型還是可以正常運行。
根據https://wikidll.com/nvidia-corporation/nvcuda-dll
“
Nvcuda.dllDLL(Dynamic Link Library)檔案,由NVIDIA公司開發,指Windows作業系統的基本系統檔案。它通常包含一組程式和驅動程式函式,可以被Windows應用。”
由于您沒有 GPU,大概沒有安裝 NVIDIA 驅動程式,并且沒有Nvcuda.dll. 據推測,Tensorflow 代碼能夠回退到模型在 CPU 上運行的模式。
您必須已安裝 Tensorflow for GPU 版本。如果您想擺脫(嘈雜的)警告訊息,請強制安裝僅 CPU 版本,或修改日志記錄級別。有關更多詳細資訊:請參閱Tensorflow 不作業:無法加載動態庫“nvcuda.dll”;dlerror:未找到 nvcuda.dll
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/434155.html
