Hi,
I’m not sure what the question here is? 
But in your code, why do you use torch.DoubleTensor() on the result of the dataloader? Aren’t these Tensors already?
If they are numpy arrays, you should use torch.from_numpy() to get Tensors out of them.