Load the state dictionary.
(
self,
state_dict: T.Dict[str, T.Any],
)
| 1700 | return to_save |
| 1701 | |
| 1702 | def load_state_dict( |
| 1703 | self, |
| 1704 | state_dict: T.Dict[str, T.Any], |
| 1705 | ): |
| 1706 | """Load the state dictionary.""" |
| 1707 | for name in self.attr_names: |
| 1708 | setattr(self, name, state_dict.get(name, None)) |
| 1709 | |
| 1710 | def load_json( |
| 1711 | self, |