from local

This commit is contained in:
dohe0342 2023-01-04 19:01:51 +09:00
parent 91d656a102
commit 13436a08e4
2 changed files with 3 additions and 6 deletions

View File

@ -204,15 +204,12 @@ class Conformer(EncoderInterface):
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C)
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[2] + \
x = self.layer_norm(1/3*(self.sigmoid(self.alpha[0])*layer_output[2] + \
self.sigmoid(self.alpha[1])*layer_output[5] + \
self.sigmoid(self.alpha[2])*layer_output[8] + \
self.sigmoid(self.alpha[3])*layer_output[11]
self.sigmoid(self.alpha[2])*layer_output[8]
#self.sigmoid(self.alpha[3])*layer_output[11]
)
)
'''
x = layer_output[2]
return x, lengths