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
40a3e35eb7
commit
d4f85c5662
Binary file not shown.
@ -230,8 +230,7 @@ class Conformer(EncoderInterface):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
elif self.group_num == 12:
|
||||||
'''
|
|
||||||
x = self.layer_norm(1/12*(self.sigmoid(self.alpha[0])*layer_output[0] + \
|
x = self.layer_norm(1/12*(self.sigmoid(self.alpha[0])*layer_output[0] + \
|
||||||
self.sigmoid(self.alpha[1])*layer_output[1] + \
|
self.sigmoid(self.alpha[1])*layer_output[1] + \
|
||||||
self.sigmoid(self.alpha[2])*layer_output[2] + \
|
self.sigmoid(self.alpha[2])*layer_output[2] + \
|
||||||
@ -247,7 +246,6 @@ class Conformer(EncoderInterface):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
'''
|
|
||||||
layer_outputs = [x.permute(1, 0, 2) for x in layer_outputs]
|
layer_outputs = [x.permute(1, 0, 2) for x in layer_outputs]
|
||||||
|
|
||||||
x = 0
|
x = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user