Relative Content

Tag Archive for pytorchloss-functionunet-neural-network

In UNet3+: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

when i try to use the UNet3+ i get an error:
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 1024, 64, 64]], which is output 0 of MulBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).