Bug emerge after I have saved the model

There is a weird thing that happens to my model.

This happens after I saved my model. I have assigned different gpu for different model in my program.

I am wondering what can cause this and whether there is a way to fix it

To be more specific, after I have run for 100 iteration, I attempted to save my model. And then it works…But it somehow screw up my gpu setting in the program and make the model and input not no the same device anymore…

I have fixed myself. Thanks