    def _set_lr(self, lr_groups_l):
        """Set learning rate for warmup.

        Args:
            lr_groups_l (list): List for lr_groups, each for an optimizer.
        """
        for optimizer, lr_groups in zip(self.optimizers, lr_groups_l):
            for param_group, lr in zip(optimizer.param_groups, lr_groups):
                param_group['lr'] = lr
Set learning rate for warmup.

Args:
lr_groups_l (list): List for lr_groups, each for an optimizer.
opensora/models/super_resolution/basicsr/models/base_model.py