Returns the state of the class as a :class:`dict`.
(self)
| 131 | self.last_epoch = last_epoch |
| 132 | |
| 133 | def state_dict(self): |
| 134 | """Returns the state of the class as a :class:`dict`.""" |
| 135 | return dict(self.__dict__.items()) |
| 136 | |
| 137 | def load_state_dict(self, state_dict): |
| 138 | """Loads the class's state. |