Skip to content

Commit 07beea0

Browse files
github-actions[bot]jubick1337
authored andcommitted
fix default attention size (#7141) (#7143)
Signed-off-by: jubick1337 <[email protected]>
1 parent 9643081 commit 07beea0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nemo/collections/asr/modules/conformer_encoder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,8 @@ def set_default_att_context_size(self, att_context_size):
783783
logging.warning(
784784
f"att_context_size={att_context_size} is not among the list of the supported look-aheads: {self.att_context_size_all}"
785785
)
786-
self.att_context_size = att_context_size
786+
if att_context_size is not None:
787+
self.att_context_size = att_context_size
787788

788789
def setup_streaming_params(
789790
self,

0 commit comments

Comments
 (0)