load_state_dict
- FullyConnected.load_state_dict(state_dict: Mapping[str, Any], strict: bool = True, assign: bool = False)
- Copies parameters and buffers from - state_dictinto this module and its descendants. If- strictis- True, then the keys of- state_dictmust exactly match the keys returned by this module’s- state_dict()function.- Warning - If - assignis- Truethe optimizer must be created after the call to- load_state_dict.- Parameters:
- state_dict (dict) – a dict containing parameters and persistent buffers. 
- strict (bool, optional) – whether to strictly enforce that the keys in - state_dictmatch the keys returned by this module’s- state_dict()function. Default:- True
- assign (bool, optional) – whether to assign items in the state dictionary to their corresponding keys in the module instead of copying them inplace into the module’s current parameters and buffers. When - False, the properties of the tensors in the current module are preserved while when- True, the properties of the Tensors in the state dict are preserved. Default:- False
 
- Returns:
- missing_keys is a list of str containing the missing keys 
- unexpected_keys is a list of str containing the unexpected keys 
 
- Return type:
- NamedTuplewith- missing_keysand- unexpected_keysfields
 - Note - If a parameter or buffer is registered as - Noneand its corresponding key exists in- state_dict,- load_state_dict()will raise a- RuntimeError.