Skip to content

Commit

Permalink
fix default attention size (NVIDIA#7141) (NVIDIA#7143)
Browse files Browse the repository at this point in the history
Signed-off-by: dorotat <[email protected]>
  • Loading branch information
github-actions[bot] authored and dorotat-nv committed Aug 24, 2023
1 parent e05a0c6 commit 25517ca
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 25517ca

Please sign in to comment.