Load the state dictionary.
(
self,
state_dict: T.Dict[str, T.Any],
)
| 1303 | return to_save |
| 1304 | |
| 1305 | def load_state_dict( |
| 1306 | self, |
| 1307 | state_dict: T.Dict[str, T.Any], |
| 1308 | ): |
| 1309 | """Load the state dictionary.""" |
| 1310 | for name in self.attr_names: |
| 1311 | setattr(self, name, state_dict.get(name, None)) |
| 1312 | |
| 1313 | @staticmethod |
| 1314 | def cat(records: T.List['PointersectRecord'], dim: int) -> 'PointersectRecord': |