Anyway, I think that when this kind of bugs appears (this was in version 0.3.0) either a warning should appear when using .data or it should be taken out  immediately. This bugs are very difficult to detect for people that uses pytorch since long time.
Even if I search information related to torch.data there is no post, nor docs, nor general information talking about this bug…
thanks