Skip to content

Commit

Permalink
[ci skip] Make to_LRCGeometry in LR geom no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 committed Jul 7, 2022
1 parent 139a53b commit fe7df9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ott/geometry/low_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ def finalize(carry):
max_value = jnp.max(jnp.concatenate((out, last_slice.reshape(-1))))
return max_value + self._bias

def to_LRCGeometry(
self, rank: int, tol: float = 1e-2, seed: int = 0
) -> 'LRCGeometry':
"""Return self."""
return self

def tree_flatten(self):
return (self._cost_1, self._cost_2, self._kwargs), {
'bias': self._bias,
Expand Down

0 comments on commit fe7df9a

Please sign in to comment.