请问transformer位置编码后的结果与原始数据的embeeding相加存在类型不一致问题,如何解决?
RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.FloatTensor instead (while checking arguments for embedding)
请问transformer位置编码后的结果与原始数据的embeeding相加存在类型不一致问题,如何解决?
RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.FloatTensor instead (while checking arguments for embedding)