Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cache aware hybrid bugs #6466

Merged
merged 10 commits into from
Apr 25, 2023
Prev Previous commit
Next Next commit
added hybrid support.
Signed-off-by: Vahid <vnoroozi@nvidia.com>
VahidooX committed Apr 20, 2023
commit 646d620151f9fa658d5fdf43f2a0f91e73cd67b6
Original file line number Diff line number Diff line change
@@ -286,8 +286,10 @@ def main():

logging.info(asr_model.encoder.streaming_cfg)
if args.set_decoder is not None:
asr_model.change_decoding_strategy(decoder_type=args.set_decoder)
# asr_model.cur_decoder = args.set_decoder
if hasattr(asr_model, "cur_decoder"):
asr_model.change_decoding_strategy(decoder_type=args.set_decoder)
else:
raise ValueError("Decoder cannot get changed for non-Hybrid ASR models.")

global autocast
if (