Skip to content

Commit

Permalink
Hybrid decoder export
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Fomitchev <bfomitchev@nvidia.com>
  • Loading branch information
borisfom committed Jul 5, 2023
1 parent 8d78af3 commit cd6d11d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nemo/collections/asr/models/hybrid_rnnt_ctc_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,14 @@ def list_export_subnets(self):
if self.cur_decoder == 'rnnt':
return ['encoder', 'decoder_joint']
else:
return ['encoder']
return ['self']

@property
def output_module(self):
if self.cur_decoder == 'rnnt':
return self.decoder
else:
return self.ctc_decoder

@classmethod
def list_available_models(cls) -> Optional[PretrainedModelInfo]:
Expand Down

0 comments on commit cd6d11d

Please sign in to comment.