LAPGAN Error: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [12800, 1]],

Could you take a look at this post and check, if the same issue would apply to your code?
Since you are also working on a GAN, this type of error seems to easily creep into the code.