from local

This commit is contained in:
dohe0342 2023-01-07 00:41:34 +09:00
parent e4957e7222
commit a7e3dc30e0
2 changed files with 2 additions and 1 deletions

View File

@ -216,9 +216,10 @@ class Conformer(EncoderInterface):
) )
) )
''' '''
x = 0 x = 0
for enum, alpha in enumerate(self.alpha): 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) x = self.layer_norm((1/self.group_size)*x)