def reinitialize(self):
        """Reinitialize the Trainer, typically after model params change."""
        self._lr_scheduler = None
        self._optimizer = None
        self._wrapped_criterion = None
        self._wrapped_model = None
Reinitialize the Trainer, typically after model params change.
structured_prompting/fairseq-version/fairseq/fairseq/trainer.py