Skip to content

Commit

Permalink
fix poincare following @ndrizza
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Nov 30, 2019
1 parent fdeab42 commit 16e6608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geoopt/manifolds/poincare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def inner(
def norm(
self, x: torch.Tensor, u: torch.Tensor, *, keepdim=False, dim=-1
) -> torch.Tensor:
return math.norm(x, u, keepdim=keepdim, dim=dim)
return math.norm(x, u, c=self.c, keepdim=keepdim, dim=dim)

def expmap(
self, x: torch.Tensor, u: torch.Tensor, *, project=True, dim=-1
Expand Down Expand Up @@ -171,7 +171,7 @@ def mobius_coadd(
def mobius_cosub(
self, x: torch.Tensor, y: torch.Tensor, *, dim=-1, project=True
) -> torch.Tensor:
res = math.mobius_coadd(x, y, c=self.c, dim=dim)
res = math.mobius_cosub(x, y, c=self.c, dim=dim)
if project:
return math.project(res, c=self.c, dim=dim)
else:
Expand Down

0 comments on commit 16e6608

Please sign in to comment.