From e4a9cbdb63e76697c0844ea94a1cb3c35d5fcf66 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Wed, 4 Jan 2023 19:02:55 +0900 Subject: [PATCH] from local --- .../.conformer.py.swp | Bin 98304 -> 98304 bytes .../conformer.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/.conformer.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/.conformer.py.swp index e6a92896ec0846d236b54e94b1ac912caa7ef8e4..5627ed6be32d31ed945aa0fd9258a8b36bec8099 100644 GIT binary patch delta 177 zcmZo@U~6b#6HPJ*^Ym4))H7fJ0s#hwlYU#1pKcU=AJ59h&A>2gGG{_L?`yBP?zd ptErWfSeaTBpI=&1P+Agg6sw@E5QDBx$Phza^O2nGM{*c#gaJAKH}C)e delta 177 zcmZo@U~6b#6HPJ*^Ym4))H7fJ0s#hwKEJKW=^I7g$Fs6>Gce4Y%$ZQmdke_g0mQRF zBAa^?c)6!5Ni&K}zL3o^y;h7-X!3__p2-4fEXW+L$@6oBCyV3=G8-DkPFIv>6a}lY vPiF&3h#SRfYULzWrWVELmzETimPA{`DrhUjpes~iG;KbTv;9a8qm3{CnRzxk diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py b/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py index ac3aaca59..4c33c6cc5 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py @@ -205,9 +205,9 @@ class Conformer(EncoderInterface): layer_output = [x.permute(1, 0, 2) for x in layer_output] x = self.layer_norm(1/4*(self.sigmoid(self.alpha[0])*layer_output[2] + \ - self.sigmoid(self.alpha[1])*layer_output[5] + \ - self.sigmoid(self.alpha[2])*layer_output[8] + \ - self.sigmoid(self.alpha[3])*layer_output[11] + self.sigmoid(self.alpha[1])*layer_output[2] + \ + self.sigmoid(self.alpha[2])*layer_output[2] + \ + self.sigmoid(self.alpha[3])*layer_output[2] ) )