    def upgrade_state_dict(self, state_dict):
        """Upgrade old state dicts to work with newer code."""
        if "decoder.speech_decoder.output_projection.weight" in state_dict:
            del state_dict["decoder.speech_decoder.output_projection.weight"]
        self.upgrade_state_dict_named(state_dict, "")
Upgrade old state dicts to work with newer code.
examples/speech_text_joint_to_text/models/joint_speech_text_pretrain_transformer.py