[onnxrt, dynamo] Fix run with inputs on mix devices (#121159)
`onnxrt` assumes all tensors are on the same device before, and this PR fixes that by setting individual device for each tensor.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/121159
Approved by: https://github.com/thiagocrepaldi