Hi,
Is there a way to create a model where the parameters are clones of another model’s parameters? To emphasize, this is more than just value copying, which is, for instance, possible by means of loading the state_dict
, etc. I need the second model’s parameters to be created/assigned using the .clone()
operation as I need the gradients to be stored for the original l model as well.
Thanks.