前言


待更新


​one of the variables needed for gradient computation has been modified by an inplace operation​

使用R-drop 将得到的两个logits进行计算时,发现这个label.to(logits)会导致这个出错。具体的代码如下:

one of the variables needed for gradient computation has been modified by an inplace operation 报错处理_人工智能