I want to copy a model and using the following code:
model_b = copy.deepcopy(model_a)
However, this operation only copy the weights/bias of the model_a, when model_a includes dropout, there is no guarantee that the outputs of model_a and model_b are exactly the same, and I want to know if pytorch has an operation that can be copied to the dropout of model a at the same time.