RuntimeError: Expected all tensors to be on the same device, but found at least

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-17 04:09   35   0

这个错误其实我没真正的搞明白

最开始我的执行命令是

python3 entity_classify_mb.py -d aifb --testing --gpu 0 --fanout=8

报错后我改成了,成功

 python3 entity_classify_mb.py -d aifb --testing  --fanout=8

同时发现一些不错的文章

https://blog.csdn.net/qq_39852676/article/details/105607849

https://stackoverflow.com/questions/63846816/runtimeerror-expected-all-tensors-to-be-on-the-same-device-but-found-at-least

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP