mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
fe9943cb00
commit
018c17873e
Binary file not shown.
@ -203,15 +203,13 @@ class Conformer(EncoderInterface):
|
|||||||
|
|
||||||
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, 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]
|
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[5] + \
|
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[1])*layer_output[5] + \
|
||||||
self.sigmoid(self.alpha[2])*layer_output[5] + \
|
self.sigmoid(self.alpha[2])*layer_output[8] + \
|
||||||
self.sigmoid(self.alpha[3])*layer_output[5]
|
self.sigmoid(self.alpha[3])*layer_output[11]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
'''
|
|
||||||
|
|
||||||
return x, lengths
|
return x, lengths
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user