[ONNX] Support torch.device in FX exporter (#105757)
Fixes https://github.com/pytorch/pytorch/issues/105172
When torch.device appears in kwargs, we ignore it, as it's not needed in onnx. However, if it's in args, it's used by dispatcher, and we didn't handle it. This PR adds torch.device into args processing.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105757
Approved by: https://github.com/BowenBao, https://github.com/justinchuby