ResBlockFC.register_state_dict_post_hook

ResBlockFC.register_state_dict_post_hook(hook)[source]

Register a post-hook for the state_dict() method.

It should have the following signature::

hook(module, state_dict, prefix, local_metadata) -> None

The registered hooks can modify the state_dict inplace.