RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0!

I think I know why, am I solved it.