    def upgrade_state_dict(self, state_dict):
        """Upgrade old state dicts to work with newer code."""
        self.upgrade_state_dict_named(state_dict, "")
Upgrade old state dicts to work with newer code.
fairseq/models/fairseq_model.py