We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfcade commit 1e5ec44Copy full SHA for 1e5ec44
intermediate_source/parametrizations.py
@@ -255,7 +255,7 @@ def forward(self, X):
255
parametrize.register_parametrization(layer_spd, "weight", MatrixExponential())
256
X = layer_spd.weight
257
print(torch.dist(X, X.T)) # X is symmetric
258
-print((torch.symeig(X).eigenvalues > 0.).all()) # X is positive definite
+print((torch.linalg.eigvalsh(X) > 0.).all()) # X is positive definite
259
260
###############################################################################
261
# Initializing parametrizations
0 commit comments