Returns a dictionary that can be saved or load.
(self)
| 1693 | return camera |
| 1694 | |
| 1695 | def state_dict(self) -> T.Dict[str, T.Any]: |
| 1696 | """Returns a dictionary that can be saved or load.""" |
| 1697 | to_save = dict() |
| 1698 | for name in self.attr_names: |
| 1699 | to_save[name] = getattr(self, name, None) |
| 1700 | return to_save |
| 1701 | |
| 1702 | def load_state_dict( |
| 1703 | self, |