from local

This commit is contained in:
dohe0342 2023-02-21 02:05:34 +09:00
parent 02fa5e8017
commit db34e9428a
2 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ class Conformer(Transformer):
self.group_num = group_num
if self.group_num != 0:
self.learnable_alpha = learnable_alpha
self.group_layer_num = int(num_encoder_layers // self.group_num)
self.alpha = nn.Parameter(torch.rand(self.group_num))
self.sigmoid = nn.Sigmoid()