1.I use python model,When I converted the model, after selecting GPU1, I used C++ to call the model and could only forward it on GPU1.
2.When I use GPU0 to load the model of GPU1, an error appears: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!
3.When I use GPU1 to load the model of GPU0,Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0!
4.I use module.to(device) and tensor.to(device) to Specify the device.
Thanks for your help.