免费发布信息
当前位置:墨西哥58同城 > 热点资讯 > 投资 >  GPU的显存不足

GPU的显存不足

发表时间:2025-01-24 04:28:57  来源:墨西哥58同城  浏览:次   【】【】【
 RuntimeError: CUDA error: out of memory.
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.


 


这个error 的原因是,当期指定的GPU的显存不足,可以关闭现有的process,或者重指定显卡编号。


device = torch.device("cuda:0")
责任编辑:
墨西哥华人网

墨西哥海外仓一件代发 华人管理,沟通顺畅 系统同步操作,清晰明了 优势:城内可以专车派送,时效快还便宜

5546373387