This is an issue, which I also don’t understand in your use case.
The error is raised by Autograd, as it’s detecting an inplace operation.
However, you explained that you are seeing it during the validation step, which wouldn’t calculate the gradients in the common use case, so you would have to check why you are trying to calculate gradients during the validation step.