YuanXue1993 / SegAN

SegAN: Semantic Segmentation with Adversarial Learning
MIT License
182 stars 58 forks source link

one of the variables needed for gradient computation has been modified by an inplace operation #18

Open sorrowyn opened 2 years ago

sorrowyn commented 2 years ago

one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [36, 3, 128, 128]], which is output 0 of torch::autograd::CopySlices, is at version 9; expected version 6 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).