@Xiaoyu_Liu You can check this for example. Further more, if you want to copy by module names, you can choose named_parameters()
or state_dict()
, and make sure of the deep copy.
@Xiaoyu_Liu You can check this for example. Further more, if you want to copy by module names, you can choose named_parameters()
or state_dict()
, and make sure of the deep copy.