.data.resize_ was an unsupported operation (infact using .data is being discouraged). It worked in 1.0.1 because we still didn’t finish part of a refactor.
You should now use:
with torch.no_grad():
    Img_.resize_(Img.size()).copy_(Img))