I am getting the following error using PyTorch 0.4.0 but the code works fine in 0.3.1.

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

May I know what are the changes from 0.3 to 0.4 that can cause this error? I have few view() operations and then I had to apply contiguous(), will that be a cause for this error?