Pytorch-VAE-GAN icon indicating copy to clipboard operation
Pytorch-VAE-GAN copied to clipboard

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [32, 3, 5, 5]] is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

Open luciaL opened this issue 3 years ago • 0 comments

Traceback (most recent call last): err_enc.backward() torch.autograd.backward(self, gradient, retain_graph, create_graph) allow_unreachable=True) # allow_unreachable flag

luciaL avatar Sep 02 '20 00:09 luciaL