def params(self):
        """Return an iterable of the parameters held by the optimizer."""
        for param_group in self.param_groups:
            for p in param_group["params"]:
                yield p
Return an iterable of the parameters held by the optimizer.
understand_icl/fairseq/fairseq/optim/fairseq_optimizer.py