pytorch RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long;

错误:将一个np.int64的数传给embedding 报错内容 RuntimeError: Expected tensor for argument #1 ‘indices’ to have scalar type Long; but got CPUType instead (while checking arguments for embedding)python 解决:对这个数进行数值转换,
相关文章
相关标签/搜索