mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
02fa5e8017
commit
db34e9428a
Binary file not shown.
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user