mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Add max-var-per-eig in encoder layers
This commit is contained in:
parent
db1f4ccdd1
commit
cd5ac76a05
@ -198,7 +198,10 @@ class ConformerEncoderLayer(nn.Module):
|
||||
|
||||
# try to ensure the output is close to zero-mean (or at least, zero-median).
|
||||
self.balancer = ActivationBalancer(
|
||||
d_model, channel_dim=-1, min_positive=0.45, max_positive=0.55, max_abs=6.0
|
||||
d_model, channel_dim=-1,
|
||||
min_positive=0.45, max_positive=0.55,
|
||||
max_abs=6.0,
|
||||
max_var_per_eig=0.1,
|
||||
)
|
||||
|
||||
self.dropout = nn.Dropout(dropout)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user