mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-27 10:44:19 +00:00
pad 1 without 0.01 weight for exp
This commit is contained in:
parent
7df98eb000
commit
bdf02f69d6
@ -265,8 +265,8 @@ class ConformerEncoderLayer(nn.Module):
|
||||
if self.normalize_before:
|
||||
src = self.norm_conv_abs(src)
|
||||
|
||||
#src = self.linear1(src*0.25)
|
||||
src = 0.01*self.linear1(src*0.25)
|
||||
#src = 0.01*self.linear1(src*0.25)
|
||||
src = self.linear1(src*0.25)
|
||||
src = torch.exp(src.clamp(min=-75, max=75))
|
||||
src = src.permute(1, 2, 0) # (B, D, T)
|
||||
src = src.permute(0, 2, 1) # (B, T, D)
|
||||
|
Loading…
x
Reference in New Issue
Block a user