RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument weight in method wrapper__nll_loss2d_forward)
I am trying to train the model using single gpu but I am getting this error. Is there anyway to resolve this
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument weight in method wrapper__nll_loss2d_forward)
I am trying to train the model using single gpu but I am getting this error. Is there anyway to resolve this