register_state_dict_pre_hook
- FullyConnected.register_state_dict_pre_hook(hook)
These hooks will be called with arguments:
self
,prefix
, andkeep_vars
before callingstate_dict
onself
. The registered hooks can be used to perform pre-processing before thestate_dict
call is made.