from local

This commit is contained in:
dohe0342 2023-01-09 11:31:50 +09:00
parent 40a3e35eb7
commit d4f85c5662
2 changed files with 14 additions and 16 deletions

View File

@ -230,8 +230,7 @@ class Conformer(EncoderInterface):
)
)
'''
elif self.group_num == 12:
x = self.layer_norm(1/12*(self.sigmoid(self.alpha[0])*layer_output[0] + \
self.sigmoid(self.alpha[1])*layer_output[1] + \
self.sigmoid(self.alpha[2])*layer_output[2] + \
@ -247,7 +246,6 @@ class Conformer(EncoderInterface):
)
)
'''
'''
layer_outputs = [x.permute(1, 0, 2) for x in layer_outputs]
x = 0