mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
Initialize BiasNorm bias with small random values
This commit is contained in:
parent
68980c5d0a
commit
d0f58a17f4
@ -462,7 +462,7 @@ class BiasNorm(torch.nn.Module):
|
||||
self.num_channels = num_channels
|
||||
self.channel_dim = channel_dim
|
||||
self.log_scale = nn.Parameter(torch.tensor(log_scale))
|
||||
self.bias = nn.Parameter(torch.zeros(num_channels))
|
||||
self.bias = nn.Parameter(torch.empty(num_channels).normal_(mean=0, std=1e-4))
|
||||
|
||||
self.log_scale_min = log_scale_min
|
||||
self.log_scale_max = log_scale_max
|
||||
|
Loading…
x
Reference in New Issue
Block a user