https://pytorch.org/tutorials/beginner/saving_loading_models.html#save-load-entire-model 219
it says:
The disadvantage of  Save/Load Entire Model is that the serialized data is bound to the specific classes and the exact directory structure used when the model is saved. The reason for this is because pickle does not save the model class itself.
and there is no other way:(