Double limit of penalize_abs_values_gt in AttentionDownsample from 10 to 20.

This commit is contained in:
Daniel Povey 2022-12-09 21:00:24 +08:00
parent 6e598cb18d
commit 958d9b929d

View File

@ -829,7 +829,7 @@ class AttentionDownsample(torch.nn.Module):
scores = (src * self.query).sum(dim=-1, keepdim=True)
scores = penalize_abs_values_gt(scores,
limit=10.0,
limit=20.0,
penalty=1.0e-04)
weights = scores.softmax(dim=1)