I have a pretty powerful model (inherited from nn.Module), that I want to reuse. The problem is that I want to replace some model Parameters with Tensors to make gradient flow through them. I need it because in my implementation these properties of the model will be outputs of another model. So I need a way to unregister Parameters with the corresponding names from the model. How I can do it.