fynance.models.neural_network.BaseNeuralNet.load_state_dict¶
-
BaseNeuralNet.
load_state_dict
(state_dict, strict=True)¶ Copies parameters and buffers from
state_dict
into this module and its descendants. Ifstrict
isTrue
, then the keys ofstate_dict
must exactly match the keys returned by this module’sstate_dict
function.- Arguments:
- state_dict (dict): a dict containing parameters and
- persistent buffers.
- strict (bool, optional): whether to strictly enforce that the keys
- in
state_dict
match the keys returned by this module’sstate_dict
function. Default:True