Skip to content

Commit

Permalink
fix default attention size (NVIDIA#7141)
Browse files Browse the repository at this point in the history
Signed-off-by: Nithin Rao Koluguri <nithinraok>
Co-authored-by: Nithin Rao Koluguri <nithinraok>
  • Loading branch information
nithinraok authored and zhehuaichen committed Oct 4, 2023
1 parent 33ca0d7 commit 959c77d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nemo/collections/asr/modules/conformer_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ def set_default_att_context_size(self, att_context_size):
logging.warning(
f"att_context_size={att_context_size} is not among the list of the supported look-aheads: {self.att_context_size_all}"
)
self.att_context_size = att_context_size
if att_context_size is not None:
self.att_context_size = att_context_size

def setup_streaming_params(
self,
Expand Down

0 comments on commit 959c77d

Please sign in to comment.