Skip to content

Commit

Permalink
fix default attention size (#7141) (#7143)
Browse files Browse the repository at this point in the history
Signed-off-by: jubick1337 <[email protected]>
  • Loading branch information
github-actions[bot] authored and jubick1337 committed Aug 8, 2023
1 parent 9643081 commit 07beea0
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 @@ -783,7 +783,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 07beea0

Please sign in to comment.