mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix diagnostics.py re backoff for eigs
This commit is contained in:
parent
e5b047a814
commit
2e6610af5e
@ -254,7 +254,7 @@ class TensorDiagnostic(object):
|
||||
"Error getting eigenvalues, trying another method."
|
||||
)
|
||||
eigs, _ = torch.eig(stats)
|
||||
stats = eigs.abs().sqrt()
|
||||
stats = eigs.norm(dim=1).sqrt()
|
||||
# sqrt so it reflects data magnitude, like stddev- not variance
|
||||
|
||||
if stats_type in [ "rms", "stddev" ]:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user