3dbraingen icon indicating copy to clipboard operation
3dbraingen copied to clipboard

In alpha wgan loss3.backward(retain_graph=True)

Open shiblyg opened this issue 2 years ago • 1 comments

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 64, 3, 3, 3]] is at version 293; expected version 292 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True). When I comment this it runs but I am guessing for the code_discriminator it should issue as the loss is not backword the weight will not update?

shiblyg avatar Nov 17 '22 23:11 shiblyg

Hi, sorry for the inconvenience since the our repository is trained with pytorch 0.4, it will make error when trained with higher version of pytorch.

Now I am planning to update the code for higher version of Pytorch.

cyclomon avatar Dec 16 '22 05:12 cyclomon