The true answer is to add following line of code:
import os
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
The true answer is to add following line of code:
import os
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
本文标题:failed call to cuInit: CUDA_ERRO
本文链接:https://www.haomeiwen.com/subject/nufdcrtx.html
网友评论