def build_optimizer(cls, args, params):
        """
        Args:
            args (argparse.Namespace): fairseq args
            params (iterable): iterable of parameters to optimize
        """
        fp32_params = cls.build_fp32_params(params)
        fp32_optimizer = optim.build_optimizer(args, [fp32_params])
        return cls(args, params, fp32_optimizer, fp32_params)

        Args:
            args (argparse.Namespace): fairseq args
            params (iterable): iterable of parameters to optimize
        
infoxlm/fairseq/fairseq/optim/fp16_optimizer.py