one of the variables needed for gradient computation has been modified by an inplace operation 报错处理

2022年01月16日 阅读数:0
这篇文章主要向大家介绍one of the variables needed for gradient computation has been modified by an inplace operation 报错处理,主要内容包括基础应用、实用技巧、原理机制等方面,希望对大家有所帮助。


前言


  • 待更新

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

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

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