mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Change min and max positive
This commit is contained in:
parent
7920fa7726
commit
0522425ea8
@ -1405,7 +1405,7 @@ class AttentionSqueeze(nn.Module):
|
||||
|
||||
self.out_balancer = ActivationBalancer(
|
||||
channels, channel_dim=-1,
|
||||
min_positive=0.4, max_positive=0.5,
|
||||
min_positive=0.3, max_positive=0.7,
|
||||
min_abs=ScheduledFloat((0.0, 0.002), (8000.0, 0.02), (20000.0, 0.01)),
|
||||
)
|
||||
|
||||
@ -1539,7 +1539,7 @@ class NonlinAttentionModule(nn.Module):
|
||||
|
||||
self.balancer2 = ActivationBalancer(
|
||||
channels, channel_dim=-1,
|
||||
min_positive=0.4, max_positive=0.5,
|
||||
min_positive=0.3, max_positive=0.7,
|
||||
min_abs=ScheduledFloat((0.0, 0.001), (8000.0, 0.01), (20000.0, 0.005)),
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user