from local
This commit is contained in:
parent
9e1899cea7
commit
600ee74855
Binary file not shown.
@ -216,9 +216,13 @@ class Conformer(EncoderInterface):
|
||||
|
||||
if self.group_num != 0:
|
||||
x = 0
|
||||
'''
|
||||
for enum, alpha in enumerate(self.alpha):
|
||||
x += self.sigmoid(alpha) * layer_outputs[(enum+1)*self.group_layer_num-1]
|
||||
x = self.layer_norm(x/self.group_num)
|
||||
'''
|
||||
x = self.sigmoid(self.alpha[0]) * layer_outputs[2]
|
||||
x = self.layer_norm(x)
|
||||
|
||||
return x, lengths
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user