摘要:
此错误是由于下载的torch没有cuda,在运行时就会出错,经过查阅,在程序最开始的地方加上(在开始添加了各种包后面即可): device = torch.device("cuda" if torch.cuda.is_available() else "cpu") 代码其余地方出现.cuda()的地 阅读全文
posted @ 2022-03-19 21:53
时光如你般美好
阅读(2442)
评论(2)
推荐(0)

浙公网安备 33010602011771号