espnet.asr.pytorch_backend.asr_init.get_lm_state_dict
Less than 1 minute
espnet.asr.pytorch_backend.asr_init.get_lm_state_dict
espnet.asr.pytorch_backend.asr_init.get_lm_state_dict(lm_state_dict)
Create compatible ASR decoder state dict from LM state dict.
- Parameters:lm_state_dict (Dict) – Pre-trained LM state dict.
- Returns: State dict with compatible key names.
- Return type: new_state_dict (Dict)