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