How to use a trained model in a new model

How to use a trained model as part of a new model in pytorch and the parameters of the trained model can not be changed during the training process of the new model