@mmisiur yes, but I think my use case is a little bit different.
I want to load some models to multiple gpus respectively and run each model on its gpu.
Thanks for reminding it.
Ok, right. So it’s hard to say what is wrong without your code. But if I understand what you want to do (load one model on one gpu, second model on second gpu, and pass some input through them) I think the proper way to do this, and one that works for me is: