espnet.asr.pytorch_backend.asr_init.get_trained_model_state_dict
Less than 1 minute
espnet.asr.pytorch_backend.asr_init.get_trained_model_state_dict
espnet.asr.pytorch_backend.asr_init.get_trained_model_state_dict(model_path, new_is_transducer)
Extract the trained model state dict for pre-initialization.
- Parameters:
- model_path (str) – Path to trained model.
- new_is_transducer (bool) – Whether the new model is Transducer-based.
- Returns: Trained model state dict.
- Return type: (Dict)