Hi,
Is there any advantage to using “load_state_dict” not “deepcopy” or vice versa when one wants to ‘deep’ copy, i.e. updating model_B doesn’t change model_A after copy,  one model to another?
class DummyNet(nn.Module):
     def __init__(self,..):
         super(dummyNet, self).__init__()
         ...
     def forward(...)
          ...


Method 1:
model_A = DummyNet()
model_B = copy.deepcopy(model_A)

Method 2:
model_A = DummyNet()
model_B = DummyNet()
model_B.load_state_dict(model_A.state_dict())

They practically lead to the same result but want to make sure.
Thanks,