RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking arugment for argument index in method wrapper_index_select)

Hi @ehalit , I am also facing the similar issue when training on 2 or more GPU’s. Do I need to change my DemoDataset(Dataset): class? RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0!

Kindly help, please!