mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
Make max eig ratio 10
This commit is contained in:
parent
278358bb9f
commit
cedfb5a377
@ -960,9 +960,9 @@ param_rms_smooth1: Smoothing proportion for parameter matrix, if assumed rank of
|
||||
new_mean = (eps + (smooth + 1) * mean) # mean of modified rms.
|
||||
ans = rms / new_mean
|
||||
|
||||
if False:
|
||||
if True:
|
||||
# Apply max_rms
|
||||
max_rms = 5.0
|
||||
max_rms = 10.0
|
||||
ans.clamp_(max=max_rms*2)
|
||||
ans /= _mean(ans, exclude_dims=[0], keepdim=True)
|
||||
ans.clamp_(max=max_rms)
|
||||
|
Loading…
x
Reference in New Issue
Block a user