RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [64, 64, 1, 1]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead

Hi Chao!

Here is a post that discusses how to diagnose and fix inplace-modification
errors:

Please feel free to post follow-up questions if you’re still having problems
with this issue.

Good luck!

K. Frank