mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +00:00
Make it really have 2k decay and revert to 0.02 scale
This commit is contained in:
parent
e99344f15e
commit
fca844d80c
@ -795,7 +795,7 @@ class Decorrelate(torch.nn.Module):
|
||||
def __init__(self,
|
||||
num_channels: int,
|
||||
scale: float = 0.1,
|
||||
apply_prob_decay: int = 1000,
|
||||
apply_prob_decay: int = 2000,
|
||||
eps: float = 1.0e-05,
|
||||
beta: float = 0.95,
|
||||
channel_dim: int = -1):
|
||||
|
@ -199,7 +199,7 @@ class ConformerEncoderLayer(nn.Module):
|
||||
)
|
||||
|
||||
self.dropout = nn.Dropout(dropout)
|
||||
self.decorrelate = Decorrelate(d_model, scale=0.04)
|
||||
self.decorrelate = Decorrelate(d_model, scale=0.02)
|
||||
|
||||
|
||||
def forward(
|
||||
|
Loading…
x
Reference in New Issue
Block a user