load_state#
- class brainpy.load_state(target, state_dict, **kwargs)[source]#
Copy parameters and buffers from
state_dictinto this module and its descendants.- Parameters:
target (
DynamicalSystem) – The dynamical system to load its states.state_dict (
Dict) – A dict containing parameters and persistent buffers.
- Returns:
NamedTuplewithmissing_keysandunexpected_keysfields* **missing_keys** is a listofstr containing the missing keys* **unexpected_keys** is a listofstr containing the unexpected keys