How to load two networks in a gpu and to get predictions

Thank you for all your answers.

I trained two different networks for one problem, and saved them one by one (here I did not calculate and save the predictions because the predictions are too large).
I want to load these networks on a gpu, calculate the predictions simultaneously for the same input, and compare with each other…

I wrote the program something like


I can get the pred1 and pred2, however the results look like the same…
I hope you know the resolution

Best wishes


If the predictions from both models are the same, it is most likely because they have learned similar patterns and produce similar outputs for the same input.

Thank you!

Thank you
I checked the networks gave different predictions when separately executed.

The above problem is due to my misunderstanding…
The program above loads the networks separately, and I can get each of predictions