Does someone can tell in which  cases  the “RuntimeError: tensor does not have a device”  is raised. Because I have dumped all the tensors involved in the computation of the loss and all are in the cuda:0 device.
Thanks