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 03340ec commit eb90610Copy full SHA for eb90610
tests/helpers/influence/common.py
@@ -511,7 +511,7 @@ def generate_symmetric_matrix_given_eigenvalues(
511
D = len(eigenvalues)
512
version = _parse_version(torch.__version__)
513
if version < (1, 8):
514
- Q, _ = torch.qr(torch.randn((D, D)))
+ Q, _ = torch.linalg.qr(torch.randn((D, D)))
515
else:
516
Q, _ = torch.linalg.qr(torch.randn((D, D)))
517
return torch.matmul(Q, torch.matmul(torch.diag(torch.tensor(eigenvalues)), Q.T))
0 commit comments