前言 文章来源:CSDN@LawsonAbs待更新 one of the variables needed for gradient computation has been modified by an inplace operation 使用R-drop 将得到的两个logits进行计算时,发现这个label.to(logits)会导致这个出错。具体的代码如下: