failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
在调用tensorflow作测试时遇到上述问题。
解决办法
首先在终端执行nvdia-smi,遇到错误:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.
然后采用https://blog.csdn.net/u012114438/article/details/104425573中的解决方法二通过重启电脑进入原来版本的Ubuntu内核解决了问题。