From b6a0ae8b61975b03bcc0b38e2adedcc9542e1523 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Tue, 14 Feb 2023 17:53:48 +0900 Subject: [PATCH] from local --- .../ASR/conformer_ctc3/.conformer.py.swp | Bin 65536 -> 65536 bytes egs/tedlium2/ASR/conformer_ctc3/.train.py.swp | Bin 53248 -> 53248 bytes egs/tedlium2/ASR/conformer_ctc3/conformer.py | 4 +++- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/egs/tedlium2/ASR/conformer_ctc3/.conformer.py.swp b/egs/tedlium2/ASR/conformer_ctc3/.conformer.py.swp index 9fd22fe375b8a269db9e0cea6284b3970da8af56..3ec2ecd0c794942c8f8c4216d3fbe7990b4a46b3 100644 GIT binary patch delta 244 zcmZo@U}0As93<3-c8j}Sb=Ckbw@}_fb-sbRxbFytS z=j5AS;;er8d8rJO4L3<`zUiesm32D{1Ht#4M1EE#Nj~f55(Wt85ouW@iHKu0mK17tOmqC*ccd20r4Rq zJ_y9?fp{ShcLQ-b5C^d_a50zw8G=Ckdb94seJqpnCvr@_sj0SE`k5>Xla9h>i&rN^ E0dr|OcK`qY delta 232 zcmWN@F$)1<00!V!eU3Y+lTrr8i$Mm($YL=eiyxt^CWqOeFAK$>L>cIlSS*a}Y)CdK z7MZ-mQ;%&6+ZOY@>9AD6RB><60FDF`u%s_D)Y2Zn@TgVhuFLQ%p^mv!*SQhEQ|gy~ z{i_34I?!cO9dYxp_bW)P~q3j`~$VOHu3-f diff --git a/egs/tedlium2/ASR/conformer_ctc3/.train.py.swp b/egs/tedlium2/ASR/conformer_ctc3/.train.py.swp index 7744b5032112796c49e57ede39a17810d668f008..119c5ac494e7ef0a8ec3a72dd3d7d4bf6c8604c4 100644 GIT binary patch delta 32 mcmZozz}&EaSv1KY%+puFQqO<^2m}}yo_W7c?%pW+`aA%VBMK`3 delta 32 mcmZozz}&EaSv1KY%+puFQqO<^2m}}yPI|vij@>Bw`aA%TI0@hY diff --git a/egs/tedlium2/ASR/conformer_ctc3/conformer.py b/egs/tedlium2/ASR/conformer_ctc3/conformer.py index bcfffdd19..ba1a5ad4c 100644 --- a/egs/tedlium2/ASR/conformer_ctc3/conformer.py +++ b/egs/tedlium2/ASR/conformer_ctc3/conformer.py @@ -144,6 +144,8 @@ class Conformer(Transformer): self.interctc_condition = interctc_condition if self.interctc_condition: self.condition_layer = ScaledLinear(500, d_model) + else: + self.condition_layer = None def run_encoder( self, @@ -179,7 +181,7 @@ class Conformer(Transformer): mask = mask.to(x.device) if mask is not None else None x, layer_outputs = self.encoder( - x, pos_emb, src_key_padding_mask=mask, warmup=warmup + x, pos_emb, src_key_padding_mask=mask, warmup=warmup, ) # (S, N, C) if self.group_num != 0: