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

Same problem. Have you found the solution?