ptrblck:

That should not be the case, if you make sure the parameter in the state_dict has the same shape as the parameter in the model.


What if this is not what I want? I mean, if I want to give the model’s parameter a new one with a different shape. How could I do it?