def optimizer(self) -> Union[mx.optimizer.Optimizer, SockeyeOptimizer]:
        """
        Returns the optimizer of the underlying module.
        """
        # TODO: Push update to MXNet to expose the optimizer (Module should have a get_optimizer method)
        return self.current_module._optimizer
def optimizer ( self ) -> Union [ mx . optimizer . Optimizer , SockeyeOptimizer ] : return self . current_module . _optimizer
Returns the optimizer of the underlying module.