Well, something should be done. At least an initial warning when importing torch or just take out .data from the API, or something.
Or put it here https://pytorch.org/blog/pytorch-0_4_0-migration-guide/ 2
The problem is that this bug appears at least in version 0.3.0.