mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-03 06:04: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()
|
||||
except: # noqa
|
||||
print("Error getting eigenvalues, trying another method.")
|
||||
eigs, _ = torch.eigs(stats)
|
||||
eigs = torch.linalg.eigvals(stats)
|
||||
stats = eigs.abs().sqrt()
|
||||
# sqrt so it reflects data magnitude, like stddev- not variance
|
||||
elif sizes_same:
|
||||
|
Loading…
x
Reference in New Issue
Block a user