pytorch yolo3 代码运行时报错
torch._C._cuda_init()
RuntimeError: CUDA error: unknown error
解决:
在import后边加上下边一句:torch.cuda.current_device() 运行通过
import torch
torch.cuda.current_device()
pytorch yolo3 代码运行时报错
最新推荐文章于 2025-03-06 11:03:14 发布
pytorch yolo3 代码运行时报错
torch._C._cuda_init()
RuntimeError: CUDA error: unknown error
解决:
在import后边加上下边一句:torch.cuda.current_device() 运行通过
import torch
torch.cuda.current_device()