mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Decrease initial keep_prob to 0.25.
This commit is contained in:
parent
b1fa3d50fb
commit
5c99e97c3b
@ -369,7 +369,7 @@ class ConformerEncoderLayer(nn.Module):
|
||||
warmup_value = self.get_warmup_value(warmup_count)
|
||||
if warmup_value < 1.0 and self.training:
|
||||
delta = src - src_orig
|
||||
keep_prob = 0.5 + 0.5 * warmup_value
|
||||
keep_prob = 0.25 + 0.75 * warmup_value
|
||||
# the :1 means the mask is chosen per frame.
|
||||
delta = delta * (torch.rand_like(delta[...,:1]) < keep_prob)
|
||||
src = src_orig + delta
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user