failed call to cuInit: CUDA_ERRO
2022-01-06 本文已影响0人
纵春水东流
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"