mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Change scale_factor_scale from 0.5 to 0.8
This commit is contained in:
parent
b736bb4840
commit
49c6b6943d
@ -376,7 +376,7 @@ class ActivationBalancer(torch.nn.Module):
|
||||
# Instead we make the min_positive constraint stronger, so it first makes the value
|
||||
# sometimes negative, and only when that is satisfied, can deal with the absolute-value
|
||||
# constraint.
|
||||
scale_factor_scale = 0.5
|
||||
scale_factor_scale = 0.8
|
||||
below_threshold = (self.abs_mean < self.min_abs)
|
||||
above_threshold = (self.abs_mean > self.max_abs)
|
||||
scale_factor[:] = ((below_threshold.to(torch.float32) -
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user