Skip to content

Commit

Permalink
add ensemble decoding fix (#8427) (#8433)
Browse files Browse the repository at this point in the history
Signed-off-by: Nithin Rao Koluguri <nithinraok>
Co-authored-by: Nithin Rao <[email protected]>
Signed-off-by: Michal Futrega <[email protected]>
  • Loading branch information
2 people authored and michal2409 committed Feb 22, 2024
1 parent e89f8be commit 8575c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/asr/transcribe_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def main(cfg: TranscriptionConfig) -> Union[TranscriptionConfig, List[Hypothesis
asr_model.encoder.set_default_att_context_size(cfg.att_context_size)

# Setup decoding strategy
if hasattr(asr_model, 'change_decoding_strategy'):
if hasattr(asr_model, 'change_decoding_strategy') and hasattr(asr_model, 'decoding'):
if isinstance(asr_model.decoding, MultiTaskDecoding):
cfg.multitask_decoding.compute_langs = cfg.compute_langs
cfg.multitask_decoding.preserve_alignments = cfg.preserve_alignment
Expand Down

0 comments on commit 8575c31

Please sign in to comment.