Hi,
From the error message, one of the values that this linear layer needed to compute the backward was modified inplace and so it cannot compute the backward anymore.
This often happens if you modified the weights inplace between the forward and the backward. This would lead to wrong gradients and is not allowed.