How to save and restore entire model without class definition

Hi, everyone!
I want to deploy my pytorch model and I don’t want other people to know the detail of my model’s parameter setting.
I noticed that when using save&load, you should always include your model’s definition code, so I wonder if there exists a way that I can save the model weights and parameters simultaneously, and restore without the model class defined in somewhere.