这里报错是什么原因啊
来源:11-9 文本情感分类-train脚本定义

精慕门6239241
2021-09-28
RuntimeError: Expected tensor for argument #1 ‘indices’ to have scalar type Long; but got torch.cuda.IntTensor instead (while checking arguments for embedding)
写回答
1回答
-
会写代码的好厨师
2021-10-11
输入到网络的数据类型错了,实际需要的是一个long类型的,但是给了一个int类型的数据。检查下脚本是不是有问题。
00
相似问题