Skip to content

Commit

Permalink
pytorch future reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Mar 31, 2019
1 parent 2d47aa1 commit 164a1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions geoopt/linalg/_expm.py
Expand Up @@ -73,6 +73,7 @@ def expm_one(A): # pragma: no cover
U, V = torch_pade13(Ascaled)
P = U + V
Q = -U + V
# TODO: torch.gesv -> torch.solve after pytorch release
R, _ = torch.gesv(P, Q) # solve P = Q*R
expmA = matrix_2_power(R, n_squarings)
return expmA
1 change: 1 addition & 0 deletions geoopt/manifolds/stiefel.py
Expand Up @@ -114,6 +114,7 @@ def _transp_follow_one(self, x, v, *, u, t):
rhs = v + t / 2 * a @ v
lhs = -t / 2 * a
lhs[..., torch.arange(a.shape[-2]), torch.arange(x.shape[-2])] += 1
# TODO: torch.gesv -> torch.solve after pytorch release
qv, _ = torch.gesv(rhs, lhs)
return qv

Expand Down

0 comments on commit 164a1d4

Please sign in to comment.