mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-04 22:54:18 +00:00
fix typo of torch.eig
This commit is contained in:
parent
981b064007
commit
d368a69e3f
@ -140,7 +140,7 @@ def get_diagnostics_for_dim(
|
|||||||
stats = eigs.abs().sqrt()
|
stats = eigs.abs().sqrt()
|
||||||
except: # noqa
|
except: # noqa
|
||||||
print("Error getting eigenvalues, trying another method.")
|
print("Error getting eigenvalues, trying another method.")
|
||||||
eigs, _ = torch.eigs(stats)
|
eigs = torch.linalg.eigvals(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
|
||||||
elif sizes_same:
|
elif sizes_same:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user