from local

This commit is contained in:
dohe0342 2023-01-04 19:04:09 +09:00
parent 7569658054
commit fe9943cb00
2 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,7 @@ 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[5] + \
self.sigmoid(self.alpha[1])*layer_output[5] + \
@ -210,6 +211,7 @@ class Conformer(EncoderInterface):
self.sigmoid(self.alpha[3])*layer_output[5]
)
)
'''
return x, lengths