mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Remove max_factor=0.02 option in bottleneck balancer of class AttentionSqueeze, change its min,max positive to 0.2,0.8
This commit is contained in:
parent
5632782ee1
commit
28c5923986
@ -1327,10 +1327,9 @@ class AttentionSqueeze(nn.Module):
|
||||
# beginning, and make it looser over time.
|
||||
self.bottleneck_balancer = ActivationBalancer(
|
||||
bottleneck_dim, channel_dim=-1,
|
||||
min_positive=0.05, max_positive=0.95,
|
||||
min_positive=0.2, max_positive=0.8,
|
||||
min_abs=0.05,
|
||||
max_abs=ScheduledFloat((0.0, 0.5), (4000.0, 1.0), default=1.0),
|
||||
max_factor=0.02,
|
||||
min_prob=0.1,
|
||||
)
|
||||
self.bottleneck_activation = TanSwish() # in bottleneck
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user