摘要: 1. Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! 原因 参与运算的两个或多个变量,有的在CPU上,有的在GPU上 解决 首先找到报错的行,看看计算时都用到 阅读全文
posted @ 2022-12-19 00:24 Frodo1124 阅读(233) 评论(0) 推荐(0) 编辑