Make it really have 2k decay and revert to 0.02 scale

This commit is contained in:
Daniel Povey 2022-06-09 17:45:11 +08:00
parent e99344f15e
commit fca844d80c
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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(