mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Respect param_pow
This commit is contained in:
parent
209acaf6e4
commit
2fc9eb9789
@ -824,8 +824,10 @@ param_rms_smooth1: Smoothing proportion for parameter matrix, if assumed rank of
|
||||
"""
|
||||
smooth0 = group["param_rms_smooth0"]
|
||||
smooth1 = group["param_rms_smooth1"]
|
||||
param_pow = group["param_pow"]
|
||||
eps = group["eps"]
|
||||
size, = rms.shape
|
||||
rms = rms ** param_pow
|
||||
smooth = (smooth0 +
|
||||
(smooth1 - smooth0) * size / (size + rank))
|
||||
mean = rms.mean()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user