RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at ..\aten\src\THC\THCGeneral.cpp:50
解决办法:
import torch
torch.cuda.current_device()
torch.cuda._initialized = True
RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at ..\aten\src\THC\THCGeneral.cpp:50
解决办法:
import torch
torch.cuda.current_device()
torch.cuda._initialized = True