Hi Anoud!



 anoud_abdalziz:

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [20, 1, 6, 32, 32]], which is output 0 of ReluBackward0


This is a shot in the dark, but is there any chance that you have a
torch.nn.ReLU (inplace = True) as a “layer” in your model?
If so, try changing it to inplace = False.
Best.
K. Frank