Encounter the RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

Thanks, it’s working. But what do you mean by ‘Assignments to Variables are in-place operations’? So something like x=x+1 is in-place operation? Or just because I am using indexing in a matrix?