MnistModel.set_extra_state#
- MnistModel.set_extra_state(state: Any) None#
Set extra state contained in the loaded state_dict.
This function is called from
load_state_dict()to handle any extra state found within the state_dict. Implement this function and a correspondingget_extra_state()for your module if you need to store extra state within its state_dict.- Args:
state (dict): Extra state from the state_dict