解决报错:RuntimeError: one of the variables needed for gradient computation has been modified by an inpl
今天在使用pytorch做图像分割中遇见了报错:RuntimeError:oneofthevariablesneededforgradientcomputationhasbeenmodifiedbyaninplaceoperation:[torch.cuda.FloatTensor[4,64,350,450]],whichisoutput0ofReluBackward0,isatversion3;