def state_dict(self) -> Dict[str, Any]:
        """
        Returns the state of the scheduler as a ``dict``.
        """
        return {key: value for key, value in self.__dict__.items() if key != 'optimizer'}
def state_dict ( self ) -> Dict [ str , Any ] : return { key : value for key , value in self . __dict__ . items ( ) if key != 'optimizer' }
Returns the state of the scheduler as a ``dict``.