mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix eigs call
This commit is contained in:
parent
1cd7e93183
commit
040592a9e3
@ -211,7 +211,7 @@ class TensorDiagnostic(object):
|
|||||||
print(
|
print(
|
||||||
"Error getting eigenvalues, trying another method."
|
"Error getting eigenvalues, trying another method."
|
||||||
)
|
)
|
||||||
eigs = torch.linalg.eigvals(stats)
|
eigs, _ = torch.eig(stats)
|
||||||
stats = eigs.abs().sqrt()
|
stats = eigs.abs().sqrt()
|
||||||
# sqrt so it reflects data magnitude, like stddev- not variance
|
# sqrt so it reflects data magnitude, like stddev- not variance
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user