diff --git a/egs/librispeech/ASR/pruned_transducer_stateless5/.train.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless5/.train.py.swp index 9607aa4bd..c4f49771e 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless5/.train.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless5/.train.py.swp differ 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 cc49dae97..662ffd401 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/.conformer.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/.conformer.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py b/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py index b5bc7daa2..d7317ae46 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_gtrans/conformer.py @@ -202,14 +202,18 @@ class Conformer(EncoderInterface): ) # (T, N, C) x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C) - + 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] ) ) + ''' + x = layer_output[2] + return x, lengths @torch.jit.export