RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.
Python错误笔记(一):CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up env
错误提示RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.解决方式1.重启系统2.sudo apt-get install nvidia-modprobe