'Want Know Reason!!//Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found

Why does this error occur when tensorflow has no gpu, but the model can still be run normally.

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)

Error:-

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)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source