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
e4957e7222
commit
a7e3dc30e0
Binary file not shown.
@ -216,9 +216,10 @@ class Conformer(EncoderInterface):
|
||||
)
|
||||
)
|
||||
'''
|
||||
|
||||
x = 0
|
||||
for enum, alpha in enumerate(self.alpha):
|
||||
x += self.sigmoid(alpha)*layer_output[self.group_size*(enum+1)-1]
|
||||
x += self.sigmoid(alpha)*layer_output[enum]
|
||||
|
||||
x = self.layer_norm((1/self.group_size)*x)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user