xiehousen / OCGAN-Pytorch

UnOfficial PyTorch Implementation of OCGAN!
26 stars 6 forks source link

RuntimeError: #4

Open chloer-nico opened 8 months ago

chloer-nico commented 8 months ago

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [16, 1]], which is output 0 of TBackward, 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).