Load the state dictionary.
(
self,
state_dict: T.Dict[str, T.Any],
)
| 258 | return to_save |
| 259 | |
| 260 | def load_state_dict( |
| 261 | self, |
| 262 | state_dict: T.Dict[str, T.Any], |
| 263 | ): |
| 264 | """Load the state dictionary.""" |
| 265 | for name in self.attr_names: |
| 266 | setattr(self, name, state_dict.get(name, None)) |
| 267 | setattr(self, 'included_point_at_inf', state_dict.get('included_point_at_inf', False)) |
| 268 | |
| 269 | def extract_valid_attr(self, arr: torch.Tensor, bidx: int) -> T.Union[torch.Tensor, None]: |
| 270 | """ |