RuntimeError: Expected object of scalar type Long but got scalar type Float for sequence element 13
pytorch中:此处代码报错。all_label_r = torch.cat(all_label_r)在报错中,这句话是重点Expected object of scalar type Long需要long类型返回代码中找到all_label_r可以使用搜索ctrl+f查找我这是all_label_r.append(rel_label)只需在标签label后加上**.long()**即可。all_label_r.append(rel_label.long())...