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)解决:对这个数进行数值转换,转为pyth...
原创
2019-05-28 20:55:32 ·
14749 阅读 ·
21 评论